活跃农民
- 积分
- 398
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2013-10-4
- 最后登录
- 1970-1-1
|
LC 252 / 253 Meeting Room I II ++-baidu 1point3acres
.1point3acres
LC 152 Maximum Product Subarray (返回区间)
LC 311 Sparse Matrix Multiplication
LC 10 Regular Expression Matching +++
LC 44 Wildcard Matching.google и
LC 283 Move Zeros +++++++++++. check 1point3acres for more.
LC 140 Word Break II ++
LC 76 Minimum Window Substring +++++
LC 304 / 308 Range Sum Query 2D ++++
LC 543 Diameter of Binary Tree
. 1point3acres
LC 173 Binary Search Tree Iterator
. From 1point 3acres bbs
LC 17 Letter Combinations of a Phone Number. 1point 3 acres
LC 65 Valid Number
LC 341 Flatten Nested List Iterator ++++
LC 125 Valid Palindrome +++++
LC 200 / 305 Numbers of Island I II ++++. 1point3acres.com
LC 67 Add Binary ++++++ (other bases)
LC 98 Validate Binary Search Tree (Recursive and Iterative)
LC 28 Implement strStr()
.
LC 211 Add and Search Word - Data structure design
LC 680 Valid Palindrome II
LC 387 First Unique Character in a String
. Waral dи,
LC 215 Kth Largest Element in an Array
LC 105 Construct Binary Tree from Preorder and Inorder Traversal
LC 212 Word Search II. Waral dи,
LC 91 Decode Ways ++++++++
000, 134, 101
Rolling array
LC 1 Two Sum
LC 350 Intersection of Two Arrays II
LC 33 Search in Rotated Sorted Array +++. Waral dи,
.--
LC 71 Simplify Path
LC 133 Clone Graph +++++
LC 373 Find K Pairs with Smallest Sums-baidu 1point3acres
LC 301 Remove Invalid Parentheses +++++++++
LC 157 / 158 Read N Characters Given Read4 I II - Call multiple times
.google и
LC 12 / 13 Integer to Roman / Roman to Integer
LC 325 Maximum Size Subarray Sum Equals k
. 1point3acres
LC 143 Reorder List +++
LC 257 Binary Tree Paths.google и
LC 189 Rotate Array (k can be negative) +++
LC 297 Serialize/Deserialize BST (Tree) +++++++++.
LC 56 / 57 Merge Intervals / Insert Interval ++. 1point3acres.com
LC 295 Find Median from Data Stream
LC 384 Shuffle an Array / Shuffle Weighted Array
LC 332 Reconstruct Itinerary
LC 239 Sliding Window Maximum / Minimum
Josephus ring Josephus problem
LC 246 / 247 / 248 Strobogrammatic Number I II
LC 277 Find the Celebrity +++ ..
LC 415 Add Strings.
LC 116 / 117 Populating Next Right Pointers in Each Node I II. 1point3acres
每一个level的最后一个node的next要指向下一层的第一个node.google и
LC 15 3Sum +++++ 4Sum
同一个数字现在可以重复利用,但是数组里面没有重复
duplicate elements
LC 62 / 63 Count Unique Path I II
LC 347 https://stackoverflow.com/questions/20398799
LC 273 Integer to English Words
LC 134 Gas Station
LC 75 Sort Colors (k categories)
LC 235 Lowest Common Ancestor of a Binary Search Tree
. Χ
LC 53 Maximum Subarray
LC 39 Combination Sum
Kth smallest element in BST
Max Sum of Rectangle No Larger Than K
Subset
LC 121 / 122 / 123 Best Time to Buy and Sell Stock- I II III
.--LC 554 Brick Wall
follow up是这面墙的高度很小,但是宽度很大,每一行可能有特别特别多的砖,问你怎么办。
k closest points to (0,0),
.1point3acres
楼主用了priority queue,
. 1point3acres
quick select
longest arithmetic sequence 面经题 唯一和我看到的不同处是要求返回最长sequence
. From 1point 3acres bbs
valid IP in string format and return the uint32 format
-baidu 1point3acres
LC 236 Lowest Common Ancestor of a Binary Tree
in-place replace all "%20" in a string to a space
abc%20def -> abc def
abc%20%20%2 -> abc %2 . ----
.google и
LC 29 Divide Two Integers +++
LC 20 Valid Parentheses
. .и
. ----LC 278 First Bad Version
LC 66 Plus One
LC 146 LRU
find the max and min of an array with minimum comparisons Link
given k sorted array, each array has n posts, find the shortest interval contains at least 1 post from each array Link
LC 340 Longest substring with at most k different chars. 1point3acres.com
Implement circular buffer with read & write functions
. 1point 3acres
LC 314 Binary tree vertical traverse
LC 273 Integer to English Words
LC 72 Edit distance
Merge K iterators
LC 138 Copy List with Random Pointer
hashmap+递归写的,老哥一直问 1进来了 what next, 我没懂想让我讲啥 我就在解释算法啊, 其实是让我口头run一个text case吧。。
LC 523 Continuous Subarray Sum
LC 88 Merge Sorted Array
.
LC 102 Print binary tree level by level
.
input是一个string,求出所有可能的大小写组合。 比如ab 返回:Ab,ab,aB,AB
是给一个prime number 数组, 返回相乘的结果集。 比如 input = [3,5,7], output = [3,5,7,15,21,35,105]
. 1point3acres
给一个array和k,求size为k的所有subarray最大的最大值。一个loop就能搞定-baidu 1point3acres
求3个size为k的subarray的最大值,subarray之间不能overlap。
. 1point3acres
没想出来,给了个O(N^3)的暴力解,肯定要gui。最后问三哥说有O(N) 的解。有谁知道咋做吗?
. 给你一个数字比如111112222333112,返回每个数字出现的个数和数字本身,这个例子的返回为5142332112. 写完之后问这个返回的result,最短多长,最长多长。
LC 282 Expression Add Operators
.--
LC 494 Target Sum
LC 127 Word Ladder |
|