📣 Back to School开学季 - VIP通行证5折优惠!蓝莓、Offer多多同步优惠
楼主: xsijg8
跳转到指定楼层
上一主题 下一主题
收起左侧

[第二期活动] 在职刷题打卡,目标工作日一天2题,周末一天5题

🔗
yan20156 2019-8-18 15:41:23 | 只看该作者
全局:
Day_4 (8/17)

Inorder Successor in BST
Binary Tree Upside Down
Word Break
Maximum Depth of Binary Tree
Validate Binary Search Tree
回复

使用道具 举报

🔗
Sato123 2019-8-19 10:13:14 | 只看该作者
全局:
#Day_17

Finished * 2
539. Minimum Time Difference
199. Binary Tree Right Side View
回复

使用道具 举报

🔗
darktef 2019-8-19 11:06:13 | 只看该作者
全局:
本帖最后由 darktef 于 2019-8-19 11:10 编辑

Day 14
301 remove invalid parentheses, dfs,  process section by section, be careful the case of removing ( is similar but not exactly the same with the removal of )
207 course schedule, bfs and attempt to solve w/ dfs, follow up on 210 course schedule ii w/ bfs
630 course schedule iii, greedy + heap
269 alien dictionary, topological sort, on the saumption that the letter could be ordered will be put in the order of its appearance
329 longest increasing path in a matrix, dfs + memoization (bottom up)
317 shortest distance from all buildings, bfs (level) + need to ensure the point you picked is land and could reach all houses (num_houses_reached)
896 mononic array, O(n), simple problem usually could be solved in a clean way
回复

使用道具 举报

🔗
coldcoffee.jp 2019-8-19 11:43:46 | 只看该作者
全局:
Day 2

4. Median of Two Sorted Arrays - Classic binary search problem. Needs to think about the edge cases. Needs to revisit in the future.
45. Jump Game II - Intuitive solution is DP, but O(n**2) is a bit too slow. Interesting optimization via greedy to O(n).
438. Find All Anagrams in a String - Classic sliding window
80. Remove Duplicates from Sorted Array II - Very similar to Remove Duplicates from Sorted Array I
277. Find the Celebrity - Interesting O(n) 2-pass
41. First Missing Positive - Similar to counting sort. Saving space by encoding if a positive integer is seen into the array itself.
299. Bulls and Cows - Easy using hash map
134. Gas Station - Interesting 1 pass O(n) solution
119. Pascal's Triangle II







回复

使用道具 举报

🔗
 楼主| xsijg8 2019-8-19 13:58:10 | 只看该作者
全局:
day 15
完成5题
Insert into a Binary Search Tree
Range Sum of BST
Closest Binary Search Tree Value II
Closest Binary Search Tree Value
Kth Smallest Element in a BST
回复

使用道具 举报

🔗
 楼主| xsijg8 2019-8-19 13:59:08 | 只看该作者
全局:
bixingxie 发表于 2019-8-19 11:43
Day 2

4. Median of Two Sorted Arrays - Classic binary search problem. Needs to think about the e ...

哇,一天八九题这个速度可以啊
回复

使用道具 举报

🔗
yan20156 2019-8-19 15:50:10 | 只看该作者
全局:
Day_5 (8/18)

Word Squares
N-Queen
N-Queen II
Letter combination of a phone number
Find position Unique Character
回复

使用道具 举报

🔗
gralance 2019-8-19 23:16:25 | 只看该作者
全局:
Facebook -  Remove Invalid Parentheses

总结心得在此
https://hackmd.io/MfyiJdjPR5OkNB15yE3PYA
回复

使用道具 举报

🔗
xxJay 2019-8-20 04:38:29 | 只看该作者
全局:
#Day_6

986. interval list intersections
125. valid palindrome
227. basic calculator ii
回复

使用道具 举报

🔗
Sato123 2019-8-20 08:50:19 | 只看该作者
全局:
#Day_18

Finished * 4
Employee Free Time
Find First and Last Position of Element in Sorted Array
Pour Water
Friend Circles
回复

使用道具 举报

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

本版积分规则

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