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

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

🔗
yan20156 2019-8-16 15:19:07 | 只看该作者
全局:
Day_3 (8/15)

(1) Find All Anagrams in a String
用 int[char] 来记录 sliding window 里每个char 的个数, 用 absSum 来判断是不是参照 word 的 anagram

(2) Word Abbreviation
记录第几轮的 abbreviation. 用 两个 hashmap 循环去保证每个word 有 unique abbreviation
回复

使用道具 举报

🔗
Sato123 2019-8-17 11:40:53 | 只看该作者
全局:
#Day_15

Finished * 2
250. Count Univalue Subtrees
415. Add Strings
回复

使用道具 举报

🔗
darktef 2019-8-17 12:11:10 | 只看该作者
全局:
Day 10
127, word ladder

Day 11 only read through some notes, but did not code at all...

Day 12
1. 1086, maxheap
2. 310, 490, 505, 675, 909, bfs
3. 973, sort or heap
回复

使用道具 举报

🔗
 楼主| xsijg8 2019-8-17 15:48:39 | 只看该作者
全局:
day 13
Validate Binary Search Tree
Binary Tree Vertical Order Traversal
回复

使用道具 举报

🔗
yan20156 2019-8-17 15:57:48 | 只看该作者
全局:
Day_3 (8/16)
Convert BST to Greater Tree
Find leaves of Binary Tree
回复

使用道具 举报

🔗
Sato123 2019-8-18 11:55:17 | 只看该作者
全局:
#Day_16

Finished * 2
528. Random Pick with Weight,题本身简单,题目看了半天
340. Longest Substring with At Most K Distinct Characters 题本身很简单,debug了半天
回复

使用道具 举报

🔗
xxJay 2019-8-18 12:09:50 | 只看该作者
全局:
#Day_5
1160. Find Words That Can Be Formed by Characters
1161. Maximum Level Sum of a Binary Tree
回复

使用道具 举报

🔗
darktef 2019-8-18 12:13:23 | 只看该作者
全局:
Day 13
1. 419 battleship, pay attention to the condition to simplify the solution even more
2. 78 subsets, dfs & bfs
3. 785, is graph bipartite, dfs & bfs => use states[] or colors[] to record the group the node belongs to
4. 721, accounts merge, union find, and such a tedious code
5. 36, valid sudoku, smart way to record your traversal
6. 37, sudoku solver, dfs + backtracking (do not try to be smart when solving the interview problems...)
回复

使用道具 举报

🔗
coldcoffee.jp 2019-8-18 12:33:29 | 只看该作者
全局:
刷题day k, 打卡day1:

157. Read N Characters Given Read4 - Easy question but confusing description
161. One Edit Distance - Simple string comparison
199. Binary Tree Right Side View - Same as BST level order traversal (DFS or BFS)
208. Implement Trie (Prefix Tree) - Important data structure. Easy to implement in Python using nested dictionaries
211. Add and Search Word - Data structure design - Using trie. Note that need to do a DFS to exhaust all possibilities for `.`
39. Combination Sum - classic backtracking
40. Combination Sum II - classic backtracking
216. Combination Sum III - classic backtracking
377. Combination Sum IV - bottom-up DP. For the follow up, might need to restrain length of combination. E.g. nums = [-1, 1], target = 0. Then there are infinite combinations.
回复

使用道具 举报

🔗
 楼主| xsijg8 2019-8-18 13:53:14 | 只看该作者
全局:
day 14
复习一题post-order,然后做了5个BST相关
postorder traversal 用双stack
Largest BST Subtree
Serialize and Deserialize BST
426. Convert Binary Search Tree to Sorted Doubly Linked List
Convert Sorted Array to Binary Search Tree
Convert Sorted List to Binary Search Tree
回复

使用道具 举报

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

本版积分规则

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