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

在职跳槽 刷题 记录帖

🔗
 楼主| westcoastboy 2018-10-27 06:55:10 | 只看该作者
本楼:
全局:
本帖最后由 westcoastboy 于 2019-1-12 00:15 编辑

.........
回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-11-2 10:48:23 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-11-13 23:58 编辑

11/03  

谷歌高频range类
  • Read N Characters Given Read4 II
  • Range Addition   ,  done
  • Missing Range  ,  done
  • Range Module
  • Meeting Room II
  • Range Sum系列




回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-11-2 12:14:41 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-11-5 21:54 编辑

11/02
背包 (仍需做题巩固)
背包九讲  
https://www.kancloud.cn/kancloud/pack/70130

01/完全 背包问题
分组背包问题






Stack

  • Car Fleet
  • Remove Duplicate Letters
  • Decode String ,  done
  • Largest Rectangle in Histogram  ,  done
  • Trapping Rain Water   ,  done



回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-11-3 05:23:08 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-11-8 09:52 编辑

11/03 ~ 11/07  

String

  • Longest Substring Without Repeating Characters    ,   done
  • Longest Substring with At Least K Repeating Characters  ,  分治法(还有更优解)
  • Longest Substring with At Most Two Distinct Characters   ,   done
  • Longest Substring with At Most K Distinct Characters   ,   done
  • Minimum Window Substring    ,   done
  • Longest Repeating Character Replacement  , done   思路不容易转化
  • Text Justification   ,  done
  • Find And Replace in String   ,  done
  • Multiply Strings   ,  done
  • Encode and Decode Strings    ,  done
  • Sliding Window Maximum    ,  done
  • Group Shifted Strings    ,  done
  • Group Anagrams    ,  done
  • Encode String with Shortest Length    ,   done
  • First Unique Character in a String    ,   done
  • Find Anagram Mappings    ,   done
  • Add Bold Tag in String    ,   done
  • Count and Say   ,  done
  • Isomorphic Strings  ,  容易出Bug
  • Simplify Path
  • Longest Palindromic Substring   ,   done
  • Longest Common Prefix   ,   done
  • Shortest Palindrome  ,   需要复习一下Rabin Karp
  • Repeated String Match   ,   需要复习一下Rabin Karp



回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-11-3 05:26:53 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-12-27 05:40 编辑

弱项:
Minimax博弈


单调栈  
  • 132 Pattern
  • Next Greater Element I
  • Largest Rectangle in Histogram
  • Online Stock Span
  • Sum of Subarray Minimums
  • Daily Temperatures
  • Remove Duplicate Letters
  • https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=460338&extra=&page=1   第二题  单调栈
  • 单调栈问题,往往stack里的单调顺序,和最终你想要的顺序是一样的!



单调队列

  • Shortest Subarray with Sum at Least K   ,  done
  • Sliding Window Maximum  ,  done
  • Shortest Unsorted Continuous Subarray  ,  done
  • Best Time to Buy and Sell Stock II

双端队列 系列
  • Sliding Window Maximum
  • Shortest Subarray with Sum at Least K
  • Design Circular Queue




回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-11-4 07:16:47 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-11-9 09:55 编辑

11/08
Task Scheduler  有更优解法

背包 (仍需做题巩固)
01/完全  背包


  • Coin Change   ,  done
  • Coin Change 2   ,   done
  • Combination Sum IV   ,   done
  • Partition Equal Subset Sum   ,   done
  • Ones and Zeros   ,   done
  • Target Sum   ,   done


回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-11-9 10:05:45 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-11-12 08:34 编辑


11/11

Subsequence问题
  • Minimum Window Subsequence    ,   极难
  • Is Subsequence    ,    done
  • Number of Matching Subsequences  ,  是上面的follow up
  • Longest Increasing Subsequence    ,    done
  • Increasing Triplet Subsequence    ,    done
  • Split Array into Consecutive Subsequences    ,   极难
  • Distinct Subsequences   ,   done
  • 132 Pattern   ,   done
  • Increasing Subsequences    回溯,可以优化!

总结近期题目 : 背包,string, 单调stack/queue

改简历

回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-11-9 23:16:39 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-11-13 07:30 编辑

11/11 ~ 11/13

Subarray 系列
  • Subarray Product Less Than K    ,   滑动窗口思想!
  • Product of Array Except Self   ,    done
  • Maximum Product Subarray   ,    done
  • Subarray Sum Equals K    ,    done  类似 two sum
  • Maximum Size Subarray Sum Equals k     ,    done  类似 two sum
  • Contiguous Array    ,    done  类似上题
  • Max Consecutive Ones II   ,   滑动窗口思想!
  • Minimum Size Subarray Sum   ,   滑动窗口思想!
  • Continuous Subarray Sum    ,    类似 two sum




总结近期题目 : 背包,string, 单调stack/queue

复习总结近几日做过的题目

回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-11-10 10:56:04 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-11-25 02:41 编辑

11/14 ~ 11/15  Trie
  • Palindrome Pairs      ,      done
  • Add and Search Word - Data structure design     ,      done
  • Word Search II    ,      done
  • Word Search   ,      done
  • Implement Magic Dictionary
  • Longest Word in Dictionary      ,      done
  • Replace Words     ,      done
  • Maximum XOR of Two Numbers in an Array     ,      done




11/16   String
  • Word Pattern II     ,   done
  • Word Break 打印结果  (记录下previous index即可)    ,   done
  • Word Ladder        ,   done
  • Word Ladder II        ,     done





11/17  Heap
  • Find Median from Data Stream      ,      done
  • Find K-th Smallest Pair Distance     按值二分   done
  • Find K Pairs with Smallest Sums    ,    done  
  • Split Array into Consecutive Subsequences    ,    极难
  • The Skyline Problem    ,    done  


11/17  线段树 & Range Sum系列
  • Range Sum Query - Mutable    ,     done                       
  • Reverse Pairs   ,     done                 
  • Count of Range Sum   ,     done        

  • Rectangle Area II
  • Range Sum Query 2D - Mutable

11/17  Heap
  • Ugly Number II
  • Super Ugly Number
  • Cheapest Flights Within K Stops






11/18 双指针

  • Candy Crush        ,      done
  • Reverse Vowels of a String        ,      done
  • 3 Sum        ,      done
  • 3Sum Smaller        ,      done
  • 4 Sum       ,      done
  • Sort Colors     ,      done
  • Container With Most Water     ,      done
  • Longest Word in Dictionary through Deleting       ,      done

11/18  Tree
  • Minimum Absolute Difference in BST        ,      done
  • Minimum Distance Between BST Nodes        ,      done
  • Sum of Distances in Tree       ,      done
  • Serialize and Deserialize N-ary Tree       ,      done
  • Encode N-ary Tree to Binary Tree       ,      done



11/19 双指针
  • Partition Labels        ,      done  
  • Permutation in String      ,       done  滑动窗口
  • Sort Transformed Array      ,      done
  • Push Dominoes      ,      done

11/19  ~ 11/20  HashTable

  • Find Duplicate File in System       ,      done
  • Copy List with Random Pointer     ,      done
  • Find Duplicate Subtrees      ,      done
  • Minimum Area Rectangle     ,      done
  • Valid Sudoku      ,      done
  • K-diff Pairs in an Array    ,      done
  • Max Points on a Line       ,       done
  • Most Frequent Subtree Sum        ,       done
  • Happy Number        ,       done
  • Word Pattern        ,      done
  • Basic Calculator III      ,      done
  • Random Pick with Blacklist      ,     done  
  • Insert Delete GetRandom O(1)     ,     done
  • Insert Delete GetRandom O(1) - Duplicates allowed     ,     done





11/26 ~ 11/27  Backtracking




Todo   Stack
  • Longest Absolute File Path    ,   done
  • Remove Duplicate Letters
  • Min Stack
  • Max Stack
  • Maximum Frequency Stack
  • Number of Atoms








回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-11-13 23:38:03 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-11-21 03:27 编辑

11/27 ~ 11/28  

岛屿问题

  • Lonely Pixel I
  • Island Perimeter
  • Max Area of Island
  • Number of Islands
  • Number of Islands II
  • Number of Distinct Islands


链表
  • Insert into a Cyclic Sorted List
  • Linked List Components
  • Sort List

Palindrome系列








回复

使用道具 举报

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

本版积分规则

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