240 发简信
IP属地:宾夕法尼亚州
  • Interval

    732. My Calendar III Implement a MyCalendarThree class to store your eve...

  • Two Pointers

    283. Move Zeros Given an array nums, write a function to move all 0's to...

  • BFS

    BFS找最短路径用level order,有模版。图上的搜素记得考虑用户visited数组 675. Cut Off Trees for Gol...

  • Prefix Sum + HashMap

    hashmap<count,index> map.containsKey()时更新最值不put,没有时put 根据后面找前面,不用初始化pref...

  • Divide and Conquer

    404. Sum of Left Leaves 3/ 9 20/ 15 7 There are two left leaves in t...

  • Binary Search

    二分Index 287. Find the Duplicate Number Given an array nums containing n ...

  • Data Structure (Stack+Heap+TreeMap+Deque)

    Stack 735. Asteroid Collision We are given an array asteroids of integer...

  • Design

    341. Flatten Nested List Iterator Stack的用法,list从后往前加入stack。如果涉及到移除元素的话 s...