- 博客(29)
- 收藏
- 关注
原创 BM318Maximum Product of Word Lengths
思路1 Brute ForceUse brute force two check every pairs. Has TLE problem思路2 BitI 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 248
原创 Array167Two Sum II - Input array is sorted
Two Pointers & BinarySearch 基本题目
2016-11-21 08:35:28 199
原创 BM371SumOfTwoIntegers
Negative bits shouldn't be influenced by bits manipulation
2016-11-10 12:45:41 234
原创 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 317
原创 Stack225ImplementStackUsingQueues
One for loop to Rotate the queue itself in push()
2016-11-05 06:19:02 153
原创 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 231
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人