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

在职跳槽 刷题 记录帖

🔗
 楼主| westcoastboy 2018-10-11 23:56:11 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-10-19 22:53 编辑

10/16   Binary Search

  • Search Insert Position  , done
  • Search a 2D Matrix  , done
  • Search a 2D Matrix II   , done
  • Random Pick with Weight   , done


10/18   Binary Search
  • K Empty Slots   ,   done
  • Minimize Max Distance to Gas Station  ,  done
  • Maximum Average Subarray II   ,  done


10/19   Binary Search

  • Peak Index in a Mountain Array
  • Split Array Largest Sum  
  • Intersection of Two Arrays
  • Minimum Size Subarray Sum
  • Maximum Size Subarray Sum Equals k
  • Russian Doll Envelopes


回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-10-12 04:55:50 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-10-15 07:44 编辑

TODO   DFS + backtracking

  • Word Pattern II
  • N-Queens
  • Word Search
  • Longest Increasing Path in a Matrix
  • Sudoku Solver
  • Word Break II
  • Restore IP Addresses
  • Letter Combinations of a Phone Number





回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-10-12 05:06:10 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-10-15 07:44 编辑

TODO  HashTable


  • Subarray Sum Equals K
  • Find Duplicate File in System
  • Bulls and Cows
  • Isomorphic Strings
  • Longest Substring Without Repeating Characters
  • Longest Substring with At Most K Distinct Characters
  • Two Sum
  • 4Sum
  • 3Sum
  • 3Sum Smaller

回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-10-13 01:45:16 | 只看该作者

,

全局:
本帖最后由 westcoastboy 于 2018-10-15 06:25 编辑

10/13  Binary Search

  • Kth Smallest Element in a Sorted Matrix,   done
  • Find K Closest Elements , done
  • Find First and Last Position of Element in Sorted Array  , done
  • Find Peak Element (Array先递增再递减)  , done
  • Find Minimum in Rotated Sorted Array  , done
  • Kth Smallest Element in a BST  , done
  • Search in Rotated Sorted Array ,  done
  • Pow(x, n)   迭代解法 done
  • Sqrt(x) ,  done
  • Find the Duplicate Number , done.
回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-10-13 01:48:50 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-10-16 10:30 编辑

10/15   

Majority Element   , done
Majority Element II  ,  done
Majority Element  III   ( more than N / 4 times )  , done


BFS
  • Walls and Gates  ,  done
  • Surrounded Regions  ,  done
  • Shortest Distance from All Buildings    10/16

回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-10-13 08:56:07 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-10-15 07:43 编辑

TODO

Count of Range Sum
Merge k Sorted Lists
Cheapest Flights Within K Stops
Swim in Rising Water

Cracking the Safe
Read N Characters Given Read4 II - Call multiple times
Generate Parentheses (如果只要求返回数目,怎么优化)
两个string 问题,如果insert,delete,replace分别算一次编辑,问能否在k次编辑内把一个string 转成另一个。刷题网其二变形,注意利用k次这个信息优化时间复杂度。
Candy Crush



My Calendar II
回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-10-15 02:08:27 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-10-15 07:44 编辑

TODO  Bucket
  • maximum gap
  • LRU cache
  • max chunks

回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-10-15 05:51:59 | 只看该作者
全局:
TODO:  Tree/BST

  • Convert Sorted List to Binary Search Tree
  • Convert Binary Search Tree to Sorted Doubly Linked List
  • Sum of Distances in Tree
  • Encode N-ary Tree to Binary Tree
  • Serialize and Deserialize N-ary Tree
  • Inorder Successor in BST
  • Binary Search Tree Iterator
  • Unique Binary Search Trees
  • flatten-binary-tree-to-linked-list
  • all-nodes-distance-k-in-binary-tree
  • add-one-row-to-tree
  • Diameter of Binary Tree



回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-10-15 07:20:51 | 只看该作者
全局:
本帖最后由 westcoastboy 于 2018-11-1 09:30 编辑



      TODO   String
  • Repeated String Match
  • Longest Substring Without Repeating Characters
  • Longest Substring with At Most Two Distinct Characters
  • Longest Substring with At Most K Distinct Characters
  • Minimum Window Substring
  • Read N Characters Given Read4 II - Call multiple times
  • Find And Replace in String
  • Encode and Decode Strings
  • Text Justification
  • Group Shifted Strings
回复

使用道具 举报

🔗
 楼主| westcoastboy 2018-10-15 07:54:03 | 只看该作者

利用 Binary Search Tree 思想

全局:
本帖最后由 westcoastboy 于 2018-11-1 09:23 编辑

10/32  &&  10/33  利用 Binary Search Tree 解决问题

  • My Calendar
  • My Calendar II
  • My Calendar III
  • Contains Duplicate III
  • K Empty Slots
  • Count of Range Sum
  • Data Stream as Disjoint Intervals
  • Reverse Pairs
  • Minimum Distance Between BST Nodes
  • Split BST

回复

使用道具 举报

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

本版积分规则

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