📣 独立日限时特惠: VIP通行证立减$68
楼主: zeowantjob
跳转到指定楼层
上一主题 下一主题
收起左侧

leetcode 刷题日记

🔗
 楼主| zeowantjob 2018-6-11 02:12:11 | 只看该作者
全局:
6.9
314. Binary Tree Vertical Order Traversal
        hash map and queue

157. Read N Characters Given Read4

158. Read N Characters Given Read4 II - Call multiple times
                read the parameter buffer



278. First Bad Version

543. Diameter of Binary Tree

10. Regular Expression Matching
        for *, proper think of all possible case
        initiate correctly

44. Wildcard Matching

297. Serialize and Deserialize Binary Tree
回复

使用道具 举报

🔗
 楼主| zeowantjob 2018-6-11 09:57:26 | 只看该作者
全局:
6.10
689. Maximum Sum of 3 Non-Overlapping Subarrays
leftsum + rights + prefix sum array


277. Find the Celebrity
knows(a,b) 得到两个信息 a? b?

76. Minimum Window Substring

125. Valid Palindrome

680 Valid Palindrome II

56. Merge Intervals
        sort

76. Minimum Window Substring
        proper code structure, two map and int to monitor status

173. binary search tree iterator

121. Best Time to Buy and Sell Stock

122. Best Time to Buy and Sell Stock II

23. Merge k Sorted Lists

200. Number of Islands

305. Number of Islands II

130. Surrounded Regions
回复

使用道具 举报

🔗
 楼主| zeowantjob 2018-6-12 13:06:31 | 只看该作者
全局:
636. Exclusive Time of Functions
["0:start:0","0:start:2","0:end:5","1:start:7","1:end:7","0:end:8"]
Expected:
[8,1]

341. Flatten Nested List Iterator
        what to store in stack do not make it more complex

252 meeting room

43. Multiply Strings

161. One Edit Distance
回复

使用道具 举报

🔗
 楼主| zeowantjob 2018-6-14 03:33:05 | 只看该作者
全局:
72. Edit Distance  341. Flatten Nested List Iterator  215. Kth Largest Element in an Array  98. Validate Binary Search Tree  78. Subsets  90. Subsets II  282. Expression Add Operators         time complexity 4^n         and how to proper set the parameter         use long  721. Accounts Merge         deduplication and sort use treeset  139. Word Break
回复

使用道具 举报

🔗
 楼主| zeowantjob 2018-6-14 11:47:20 | 只看该作者
全局:
140. Word Break II
        memorized dfs
        the first time do this question
        O(2^n)

285. Inorder Successor in BST

642. Design Search Autocomplete System
        trie with a map in the trienode store potential result, count pair to save time of dis
        and sort result with priority

238. Product of Array Except Self
        consider about the 0

57. Insert Interval

146. LRU Cache
75. Sort Colors
回复

使用道具 举报

🔗
 楼主| zeowantjob 2018-6-15 23:29:00 | 只看该作者
全局:
670. Maximum Swap

13. Roman to Integer

12. Integer to Roman

236. Lowest Common Ancestor of a Binary Tree

785. Is Graph Bipartite?
206. Reverse Linked List
        recursively

494. Target Sum

49. Group Anagrams

211. Word Search

212. Word Search II

523. Continuous Subarray Sum
        do again (0, negative k, big k?)

286. Walls and Gates
回复

使用道具 举报

🔗
 楼主| zeowantjob 2018-6-16 13:25:32 | 只看该作者
全局:
38. Count and Say

477. Total Hamming Distance
        solve problem bit by bit

218. The Skyline Problem
        first sort
        sweap line with priority queue

209. Minimum Size Subarray Sum

824. Goat Latin

128. Longest Consecutive Sequence

380. Insert Delete GetRandom O(1)
        use array list and hash map
        remember to update hash map after swap!

381. Insert Delete GetRandom O(1) - Duplicates allowed
        linkedhashset

71. Simplify Path

554. Brick Wall

268. Missing Number

461. Hamming Distance
回复

使用道具 举报

🔗
 楼主| zeowantjob 2018-6-18 01:44:20 | 只看该作者
全局:
674. Longest Continuous Increasing Subsequence
647. Palindromic Substrings
516. Longest Palindromic Subsequence
377. Combination Sum IV
334. Increasing Triplet Subsequence
116. Populating Next Right Pointers in Each Node
117. Populating Next Right Pointers in Each Node II
        if use recursive much more easy and avoid corner case
714. Best Time to Buy and Sell Stock with Transaction Fee
        two array buy and sell
68. Text Justification
221. Maximal Square
84. Largest Rectangle in Histogram
85. Maximal Rectangle
210. Course Schedule II
207. Course Schedule
630. Course Schedule III
50. Pow(x, n)
回复

使用道具 举报

🔗
 楼主| zeowantjob 2018-6-18 12:46:26 | 只看该作者
全局:
269. Alien Dictionary
        indegree and outdegree

127. Word Ladder

329. Longest Increasing Path in a Matrix
        O(m*n)

26. Remove Duplicates from Sorted Array

261. Graph Valid Tree

410. Split Array Largest Sum

274. H-Index

275. H-Index II

404. Sum of Left Leaves

25. Reverse Nodes in k-Group

80. Remove Duplicates from Sorted Array II

168. Excel Sheet Column Title
回复

使用道具 举报

🔗
encryptto 2018-6-20 01:10:18 | 只看该作者
本楼:
全局:
楼主加油!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表