123
返回列表 发新帖
楼主: 渣渣程序员
跳转到指定楼层
上一主题 下一主题
收起左侧

[Leetcode] fresh grad 刷题+补习知识打卡贴

🔗
sophia2018 2018-6-4 15:52:15 | 只看该作者
全局:
楼主怎么加微信,同已经毕业还没上岸
回复

使用道具 举报

🔗
 楼主| 渣渣程序员 2018-6-8 16:26:19 | 只看该作者
全局:
6/4 Mon
616. Add Bold Tag in String, similar to Merge Interval
56. Merge Intervals
817. Linked List Components, Linked List

6/5 Tue
484. Find Permutation
778. Swim in Rising Water, Min Heap
max: max time at cur position
everytime change unvisited neighbor cell's (x, y) time into max(grid[x][y], max)
and put them into pq

6/6 Wed
39. Similar String Groups, Union Find
455. Assign Cookies, Arrays sort + two pointer, greedy
122. Best Time to Buy and Sell Stock II, just cumulate the profits
763. Partition Labels

Interval
452. Minimum Number of Arrows to Burst Balloons, Arrays sort, greedy; sort by start time
435. Non-overlapping Intervals, Arrays sort, greedy; sort by end time
if we choose the interval that ends earlier, then there is more space for other intervals
253. Meeting Rooms II, Arrays sort and use PriorityQueue
先画图,模拟增加房间。正常思维会从开始时间短的开始加。每次遇到新的interval,都会考虑end最早的。如果可以合并则合并。如果不可以则新加房间。如果最早end的都不行,其他都不用考虑了。所以先按照start time sort,min pq是按end time

6/7 Thur
134. Gas Station
If the total number of gas is bigger than the total number of cost. There must be a solution.
738. Monotone Increasing Digits 自己想不到。。。
674. Longest Continuous Increasing Subsequence
747. Largest Number At Least Twice of Others, one pass, find largest and secLargest
624. Maximum Distance in Arrays
605. Can Place Flowers, Greedy
581. Shortest Unsorted Continuous Subarray, sort solution, O(n) time 还没做
562. Longest Line of Consecutive One in Matrix, DP
note need to differentiate the dp value from different directions
回复

使用道具 举报

🔗
lzl987 2018-6-8 23:14:40 | 只看该作者
全局:
楼主已经刷的350道题是从什么时候开始刷的呀
回复

使用道具 举报

🔗
 楼主| 渣渣程序员 2018-6-9 01:35:57 | 只看该作者
全局:
lzl987 发表于 2018-6-8 23:14
楼主已经刷的350道题是从什么时候开始刷的呀

很早之前了,假期陆陆续续的刷的。
回复

使用道具 举报

🔗
 楼主| 渣渣程序员 2018-6-9 16:31:53 | 只看该作者
全局:
6/8 Fri
735. Asteroid Collision, Stack
792. Number of Matching Subsequences, two pointer + HashMap; a lot of reapeating words
565. Array Nesting
581. Shortest Unsorted Continuous Subarray, O(n) time solution
767. Reorganize String, PriorityQueue
659. Split Array into Consecutive Subsequences, greedy
use HashMap to record the next possible start point of a subsequence
try to append to previously constructed subsequence or start a new subsequence at i if there is also i+1 and i+2. otherwise return false
回复

使用道具 举报

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

本版积分规则

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