LeetCode 筆記 - 116. Populating Next Right Pointers in Each Node
題目在此 116. Populating Next Right Pointers in Each Node
給定一個 Perfect Binary Tree,請為每一個 node 的 next 指向右邊 node
題目在此 116. Populating Next Right Pointers in Each Node
給定一個 Perfect Binary Tree,請為每一個 node 的 next 指向右邊 node
題目在此 77. Combinations
給兩個正整數 n, k,計算出 1 ~ n 所有長度為 k 的排列組合
題目在此 743. Network Delay Time
給定一個 Graph 與每個邊的方向與權重,指定一個 node 計算出訊號抵達所有 node 的時間
題目在此 47. Permutations II
給定一個重複數列,計算出所有不重複排列
題目在此 46. Permutations
給定一個不重複數列,計算出所有排列
題目在此 1641. Count Sorted Vowel Strings
給一個整數 n ,計算出有幾種長度為 n 的按照字典順序排列的 a, e, i, o, u 排列組合
題目在此 7. Reverse Integer
將數字反轉
題目在此 28. Implement strStr()
實作 C 語言的 strstr()
題目在此 5. Longest Palindromic Substring
給定一個字串,找出最長迴文子字串
題目在此 4. Median of Two Sorted Arrays
給定兩個 Sorting 過的數列,請合併後計算出 中位數