- 博客(78)
- 收藏
- 关注
原创 Binary298FindTheDuplicatedNumber
这个题目对于Two Pointers, Binary Search 以及 array cycle 都有比较深度的考察. 以后值得反复做, 举一反三.
2017-04-03 08:27:02 246
原创 Binary392IsSubsequence
这个很多都没接触过, 各种方法都值得再试一遍. BinarySearch一定要有一个sorted array才能执行, 另外继续条件 i j 即为终止条件, 因此结束后哪个大哪个小自然分明
2017-03-31 08:03:23 229
原创 No525ContiguousArray
在随机array内容中寻找MaxLength Subarray的方法: 因为内容升降没有规律(array没有sort) 只能遍历计算后保存最大值 累计统计方法
2017-02-19 15:42:22 954
原创 BM318Maximum Product of Word Lengths
思路1 Brute Force Use brute force two check every pairs. Has TLE problem 思路2 Bit I want to use Bit, but bit of a and bit of bb always have common 1s with intersection or xor. I have no idea how to use th
2016-11-23 13:00:47 266
原创 Array167Two Sum II - Input array is sorted
Two Pointers & BinarySearch 基本题目
2016-11-21 08:35:28 212
原创 BM371SumOfTwoIntegers
Negative bits shouldn't be influenced by bits manipulation
2016-11-10 12:45:41 250
原创 Math168ExcelSheetColumnTitle
Base 10 to base 26. Mode operator gives number in range [0, 25] which should be mapped to [1, 26]
2016-11-08 13:11:21 337
原创 Stack225ImplementStackUsingQueues
One for loop to Rotate the queue itself in push()
2016-11-05 06:19:02 163
原创 Stack155MinStack
Comparing min to the new added number. O(n) after pop(). Use linked list, create a node class. Use one more stack to store
2016-11-05 06:02:59 247
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人