楼主: xsijg8
跳转到指定楼层
上一主题 下一主题
收起左侧

在职刷题打卡,目标工作日一天2题,周末一天5题

🔗
wangyuesong2 2019-7-22 16:02:26 | 只看该作者
全局:
今日主刷图:
graph clone dfs
union find几道题,无向图上union find可以用来 (1)查看是否有环 (2)数有几个connected component
Network DelayTime:
复习了dijisktra 算法,终于算是比较清楚的明白了它和普通dfs/bfs + keep track of current smallest dist的区别
都是用来求带权重有向图上离某点最短距离的
回复

使用道具 举报

🔗
312500083 2019-7-22 16:24:53 | 只看该作者
全局:
141, 142, 202, 287
一会看看还有没有空做点别的tag
回复

使用道具 举报

🔗
yupeng.gao 2019-7-22 22:17:27 | 只看该作者
全局:
上周因为工作原因一共刷了三道题,惭愧,希望这周能多刷
回复

使用道具 举报

🔗
Sato123 2019-7-23 11:02:25 | 只看该作者
全局:
#Day_13

完成 * 2:
LC 364. Nested List Weight Sum II
LC 6. ZigZag Conversion
回复

使用道具 举报

🔗
darktef 2019-7-23 11:09:29 | 只看该作者
全局:
Word Square (DFS + trie tree) and Clone Graph (bfs).

It seems like that most word hard problem could use trie tree to optimize.
回复

使用道具 举报

🔗
 楼主| xsijg8 2019-7-23 13:52:26 | 只看该作者
全局:
252. Meeting Rooms
56. Merge Intervals
回复

使用道具 举报

🔗
zinethQ 2019-7-23 14:44:47 | 只看该作者
全局:
Day2:
787. Cheapest Flights Within K Stops
743. Network Delay Time
回复

使用道具 举报

🔗
Sato123 2019-7-24 10:23:32 | 只看该作者
全局:
#Day_14

完成 * 2:
LC 51. N-Queens
LC 426. Convert Binary Search Tree to Sorted Doubly Linked List
回复

使用道具 举报

🔗
darktef 2019-7-24 11:09:55 | 只看该作者
全局:
Day 2
BFS,
LintCode shortest path in undirected graph, six degrees and search graph node => straightforward bfs, nothing fancy
word ladder I, get the shortest distance from one string to another, the trick is how to traverse. Traverse by changing each character of the string, and see if the dict contains the new string.
回复

使用道具 举报

🔗
 楼主| xsijg8 2019-7-24 15:13:12 | 只看该作者
全局:
136. Single Number
253. Meeting Rooms II 两种方法写了这题
回复

使用道具 举报

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

本版积分规则

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