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

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

🔗
312500083 2019-7-24 17:30:56 | 只看该作者
全局:
今天脑子不太清楚,感觉该复习了
补上这几天的题
Floyd & Brent:202,287,108,110,349
Greedy:135,121,122,58
BFS:101,103,111
回复

使用道具 举报

🔗
wangyuesong2 2019-7-25 08:10:12 | 只看该作者
全局:
补前天:
Partition Array for Maximum Sum: dp,还挺难想的。。。不知道这个题怎么打上了graph的标签
Regions Cut By Slashes: 奇葩的graph题,一看到region(connected component)就应该想到union find,如何定义node实在是太奇思妙想了
Evaluate division:一直以为这题只能dfs/bfs,没想到union find也能做,只有connected component的内部node才能互相evaluate,

回复

使用道具 举报

🔗
Sato123 2019-7-25 10:05:08 | 只看该作者
全局:
#Day_15

完成 * 2:
LC 12. Integer to Roman
LC 767. Reorganize String
回复

使用道具 举报

🔗
darktef 2019-7-25 12:04:10 | 只看该作者
全局:
Day 3:
1. Word Ladder II: bfs + dfs; Use bfs to construct a graph-like structure, recording distance and nextNodes, and use dfs to print the path.
2. Sliding Puzzle: bfs; trick is to convert board to string, and pay attention to how to get the next state of the board(string).
3. Open the Lock: bfs; trick is how to get from 9 to 0, and 0 to 9, and corner case includes the dead set contains start or target
回复

使用道具 举报

🔗
 楼主| xsijg8 2019-7-25 15:15:08 | 只看该作者
全局:
Range Addition
missing number
回复

使用道具 举报

🔗
Sato123 2019-7-26 11:47:33 | 只看该作者
全局:
#Day_16

Finished * 2:
LC 935. Knight Dialer
LC 635. Design Log Storage System
回复

使用道具 举报

🔗
darktef 2019-7-26 12:22:50 | 只看该作者
全局:
Day 4
1. LintCode Build Post Office, is similar to LeetCode Shortest Distance from All Buildings. Need to be able to break down the approach into small pieces, bfs from every house to every empty on the board, record the times that the empty is visited and the add up the distance from the house to the empty, do a final iteration to get the smallest distance sum.
回复

使用道具 举报

🔗
zinethQ 2019-7-26 14:53:26 | 只看该作者
全局:
打卡
Leetcode
882
847
回复

使用道具 举报

🔗
 楼主| xsijg8 2019-7-26 15:00:07 | 只看该作者
全局:
Find the Duplicate Number
链表找环,和binary search,两种方法
Decode String
stack
回复

使用道具 举报

🔗
wangyuesong2 2019-7-26 15:32:43 | 只看该作者
全局:
今天傻逼了就刷了一道... regular expression,刷了n遍了依旧每次都错,而且这傻逼题也不咋考。。。
回复

使用道具 举报

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

本版积分规则

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