Description Find connected component in undirected graph. Each node in the graph contai...
Description Find connected component in undirected graph. Each node in the graph contai...
Description Givennnodes labeled from0ton - 1and a list ofundirectededges (each edge is ...
zz:https://www.jianshu.com/p/bbd258f99fd3 认识defaultdict: 当我使用普通的字典时,用法一般是dict={},添加元素的只...
Description Six degrees of separation is the theory that everyone and everything is six...
Description Given a 2D grid, each cell is either a wall2, a zombie1or people0(the numbe...
Description Given aundirected graph, anodeand atarget, return the nearest node to given...
Description Given a stringsand a set ofnsubstrings. You are supposed to remove every in...
Description Given a string s, find the longest palindromic subsequence's length in s. Y...
Description There are two sorted arraysAandBof sizemandnrespectively. Find themedianof ...
Description Givenksorted integer arrays, merge them into one sorted array. Example Exam...
Description MergeKsorted interval lists into one sorted interval list. You need to merg...
Description Given twoSparse MatrixA and B, return the result of AB. You may assume that...
Description Given ann x nmatrix ofpositiveandnegativeintegers, find the submatrix with ...
Description Given two sorted integer arrays A and B, merge B into A as one sorted array...
Description Merge two sorted (ascending) lists of interval and return it as a new sorte...
Description Follow up for "Unique Paths": Now consider if some obstacles are added to t...
Description A robot is located at the top-left corner of amxngrid. The robot can only m...
Description Given a set ofdistinct positiveintegers, find the largest subset such that ...
Description Give a number of envelopes with widths and heights given as a pair of integ...
Description Given a sequence of integers, find the longest increasing subsequence (LIS)...