leetcode practice start from 2020 Feb
-
Maximum Depth of Binary Tree (Easy) #3
-
Minimum Depth of Binary Tree (Easy) #2
-
Diameter of Binary Tree (Easy) #1
-
Path Sum (Easy) #1 depth function
-
Binary Tree Inorder Traversal (Medium) #-1
-
Binary Tree Preorder Traversal (Medium) #-1
-
Binary Tree Postorder Traversal (Medium) #-1
-
validate binary search tree #1 recursion #-1 inorder
-
Lowest Common Ancestor of a Binary Search Tree (Easy) #2
-
Lowest Common Ancestor of a Binary Tree (Medium) #2
-
Symmetric Tree (Easy) #-1
-
Invert Binary Tree (Easy) #2
-
Convert Sorted Array to Binary Search Tree (Easy) 还没做
-
Convert Sorted List to Binary Search Tree (Medium)
-
Balanced Binary Tree (Easy)
-
Kth Smallest Element in a BST (Medium)
-
Binary Tree Paths
-
Path Sum III (Easy)
-
Find Mode in Binary Search Tree (Easy)
-
Next Greater Element III
-
Subtree of Another Tree (Easy)
-
Merge Two Binary Trees (Easy)
-
Trim a Binary Search Tree (Easy)
-
Longest Univalue Path (Easy)
- Sum of Left Leaves (Easy) #2
- Find Bottom Left Tree Value (Easy) #2
- Average of Levels in Binary Tree (Easy)
- Binary Tree Level Order
- Remove Nth Node From End of List (Medium) #0
- Merge Two Sorted Lists (Easy) #2
- Swap Nodes in Pairs (Medium) #3
- Remove Duplicates from Sorted List (Easy)
- copy-list-with-random-pointer
- Linked List Cycle #2
- Intersection of Two Linked Lists (Easy) #2
- Reverse Linked List (Easy) #3 while #-1 recursion
- Palindrome Linked List (Easy)
- generate parentheses #1
- helper-gen-add.js
- permutations #1
- permutations-ii #1
- combinations #1
- Largest Number
- House Robber III (Medium)
- 数独
- N-queens #2
- pow-x-n #3
- majority-element #-1
- different-ways-to-add-parentheses #1 interview-find100.js #-1
- climbing-stairs #2
- triangle #2
- Maximum Product Subarray #-1
- Paint Fence
- Nim Game #1
- longest-increasing-subsequence
- coin change
- Product of Array Except Self
- Min Cost Climbing Stairs #2
- buy sell stocks
- Sqrt(x) #2
https://www.beyond3d.com/content/articles/8/ 278. First Bad Version #2 704. Binary Search #3
- Two Sum #3
- Isomorphic Strings (Easy) string
- Longest Palindrome (Easy) string
- Valid Anagram (Easy) #2
- Valid Parentheses (Easy) #3
- Decode String #-1
- Min Stack (Easy) #1
- Implement Stack using Queues (Easy)
- Implement Queue using Stacks (Easy) #1
- Daily Temperatures (Medium) #3
- Next Greater Element II (Medium) #1
- Remove K Digits #2
- Sliding Window Maximum 用deque #1
- Kth Largest Element in a Stream 不会考 因为js没有优先队列或者堆
- 3-sum #3
- Palindromic Substrings (Medium)
- implement-str-str (dp) #-1
-
add-two-numbers #1
-
Add Strings #2
-
Compare Version Numbers #1
-
Palindrome Number (Easy) #2
-
Implement Rand10() Using Rand7() #1
-
reverse-words-in-a-string #0
-
reverse-words-in-a-string-iii #1
-
Count Binary Substrings (Easy)
- Move Zeroes (Easy)
- Reshape the Matrix (Easy)
- Max Consecutive Ones (Easy)
- 1-bit hamming weight 没做
- power of two
- counting bits
- "实例:模板编译"
- 就是过滤 HTML 字符串
- 国际化处理
- reduce #1
- throttle, debounce #1
- flatten #1
- curry #2
- bind #1
- qsort #1
- symbol
- myPromise
- f(1)(2)(3) //9 #1 f(2)(2)(1) //4 f(2,2,1) //4 f() //0
- jsx函数的具体实现 https://gist.github.com/lygaret/a68220defa69174bdec5
- 提示字符串格式 YYYY-MM-12
- code point超过两个字节的汉字 如何获得码点 var s = "𠮷" 码点是0x20BB7 UTF-16 编码为0xD842 0xDFB7(十进制为55362 57271),需要4个字节储存
- let s = '𠮷a' 如何打出这两个字的码点 // 20bb7 // 61
- 测试一个字符由两个字节还是由四个字节组成
- 字符串码点和字符串相互转化
- 2进制 16进制互换
- 正确返回字符串长度的函数 var s = '𠮷𠮷'; s.length // 4 codePointLength(s) // 2
- timeout
- 按顺序完成异步操作
function m1({x = 0, y = 0} = {}) function m2({x, y} = {x:0, y:0}) m1({x: 3}) m2({x: 3})
-
strict 模式 严格模式下不能用前缀0表示八进制 严格模式下没有func.arguments:返回调用时函数的参数。 严格模式下没有func.caller:返回调用当前函数的那个函数
-
蹦床函数(trampoline)可以将递归执行转为循环执行
-
箭头函数this 例子