查看: 1882| 回复: 13
跳转到指定楼层
上一主题 下一主题
收起左侧

每天打卡 + 目标每天5题 + 看书一小时

全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
督促自己,目标每天打卡五道题,加上看书一小时

评分

参与人数 3大米 +9 收起 理由
Hanslen + 3 给你点个赞!
tree1992 + 3 给你点个赞!
zjwiii + 3 给你点个赞!

查看全部评分


上一篇:战帖 3.5周之后有个面试 开始准备春招
下一篇:转码打卡
推荐
 楼主| lawlietCU 2019-1-8 11:18:16 | 只看该作者
全局:
516 Longest Palindromic Subsequence
     - dp bottom up,  
     - if s.charAt(i) == s.charAt(j) dp[i][j] == dp[i + 1][j - 1] + 2
     - else dp[i][j] = max(dp[i + 1][j], dp[i][j - 1])
     - when coding, start from last line of array and make the first value dp[i][i] = 1 first.
728. Self Dividing Numbers
    - how to iterate over all digits of a number
    - String.valueOf(n).toCharArray()
740. Delete and Earn
    - similar to house rober
    - use taken/notaken to track state of last index
    - taken = notaken + track[i]
    - notaken = max(taken, nonTaken)

回复

使用道具 举报

推荐
 楼主| lawlietCU 2019-1-3 12:58:24 | 只看该作者
全局:
896 Monotonic Array
    - use a flag to check status
650 2 Keys Keyboard
     - for prime number at least n operations
     - get the largest divisor and its operations
696 Count Binary Substrings
     - get the number of each group
     - the idea of groups is pretty tricky
835 Image Overlap
     - get the movement of overlapping each pair of 1
     - count the number of all movements and the max is the result
732 My Calendar III
     - represent timeline using a treemap, key is time, value is add/remove events at this time






回复

使用道具 举报

推荐
 楼主| lawlietCU 2018-12-27 14:33:47 | 只看该作者
全局:
287 Find the Duplicate Number
     - if number 1 has showed, change the number at index 1 to -1. Use -x to mark existing ones.
297 Serialize and Deserialize Binary Tree
    - BFS for generating string representation
    - use a queue for deserialize, every time deal with two nodes
718 Maximum Length of Repeated Subarray
    - dp and dp[i][j] represents matching number of substrings start at i and j
    - bottom up dp and corner cases
781 Rabbits in Forest
     - using hashmap for grouping rabbits
885 Spiral Matrix III
     - find the pattern





回复

使用道具 举报

🔗
 楼主| lawlietCU 2018-12-20 16:33:43 | 只看该作者
全局:
87 Scramble String
      - recursive
575 Distribute Candies
538 Convert BST to Greater Tree
      - recursive/iterative reverse inorder traversal
457 Circular Array Loop
      - slow/fast pointer to check if there is a loop
321 Create Maximum Number
       - how to get size k of original ordered number from an array


回复

使用道具 举报

🔗
 楼主| lawlietCU 2018-12-21 14:05:07 | 只看该作者
全局:
402 Remove K Digits
    - stack and greedy
    - how to make decisions at different situations
819 Most Common Word
     - cut a sentence into words
     - String[] words = input.toLowerCase().replaceAll("[^\\w\\s]", " ").split(""\\s+);
今天有哥们毕业回国了,喝了一顿
回复

使用道具 举报

🔗
 楼主| lawlietCU 2018-12-22 15:35:53 | 只看该作者
全局:
843 Guess the Word
    - how to use current guess to eliminate the domain to search
401 Binary Watch
    - dfs for generating possible combinations
97 Interleaving String
   - dp state transfer function (how to get to this state from previous know state)
133 Clone Graph
   - bfs to clone node and edge at the same time
924 Minimize Malware Spread
    - dfs for coloring nodes of different groups
   



回复

使用道具 举报

全局:
楼主,这几天咋不来了?
回复

使用道具 举报

🔗
 楼主| lawlietCU 2018-12-26 13:42:43 | 只看该作者
全局:
love1point 发表于 2018-12-25 09:02
楼主,这几天咋不来了?

这两天圣诞节,有朋友过来玩,就三天打鱼两天晒网了。明天开始洗心革面hhhh,谢谢关心~
回复

使用道具 举报

🔗
 楼主| lawlietCU 2018-12-28 08:52:27 | 只看该作者
全局:
606 Construct String from Binary Tree
      - recursive preorder traversal
497 Random Point in Non-overlapping Rectangles
      - represent different possibility using a treemap and ceilingKey
177 Nth Highest Salary
     - limit and offset
530 Minimum Absolute Difference in BST
    - iterative in order traversal of a BST with a stack
873 Length of Longest Fibonacci Subsequence
    - set for checking existence and search for each two start pari





回复

使用道具 举报

🔗
Fieudi 2018-12-28 10:22:33 | 只看该作者
全局:
楼主也是在职跳槽么?一起加油呀
回复

使用道具 举报

🔗
 楼主| lawlietCU 2019-1-3 09:09:56 | 只看该作者
全局:
Fieudi 发表于 2018-12-28 10:22
楼主也是在职跳槽么?一起加油呀

不是哎,刚毕业~~ 一起加油哇
回复

使用道具 举报

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

本版积分规则

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