Leetcode # 523. Continuous Subarray Sum
Problem https://leetcode.com/problems/continuous-subarray-sum/ First Try [Time Limit Exceeded 81 / 99 testcases passed] Time Complexity: O(len(nums) ** 2) Space Complexity: O(len(nums) ** 2) (The inp ...
Problem https://leetcode.com/problems/continuous-subarray-sum/ First Try [Time Limit Exceeded 81 / 99 testcases passed] Time Complexity: O(len(nums) ** 2) Space Complexity: O(len(nums) ** 2) (The inp ...
Windows 輸入法相關快捷鍵 Win+Space 依輸入法清單循序切換輸入法 Win+Ctrl+Space 切換至最近使用(Most Recently Used)的輸入法 Win+. ( Numpad 的.不可) ⭐ 開啟 emoji 面板 (emoji panel) Microsoft Japanese IME (微軟日文輸入法) 切換假名快捷鍵 羅馬字 Shift+CapsLock 平假名 ...
備料 豬絞肉、豆腐 蔥、大蒜 ( 蒜頭)、蒜蓉 蔥白 直切幾道痕後 橫切丁,蔥花備用 蒜白斜切丁 醬油、蠔油、豆瓣醬、甜麵醬、[沖繩石垣島]辣油 太白粉 料理過程 炒香豬絞肉 加入 蒜蓉、豆瓣醬、甜麵醬、辣油 (0.5 : 1 : 1 : 1) 豆腐另外切塊川燙、直至豆腐浮起 (不可先川燙好) 撈起豆腐並加入絞肉中 加入醬油與蠔油 勾芡 撒上蔥花
Problem https://leetcode.com/problems/closest-binary-search-tree-value/ Solution Time Complexity: O(log(len(tree))) Space Complexity: O(1) (The input and output generally do not count towards the spac ...
Problem https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/ Solution Time Complexity: O(len(tree)) Space Complexity: O(sqrt(len(tree))) (The input and output generally do not count ...
Problem https://leetcode.com/problems/deepest-leaves-sum/ Solution Time Complexity: O(len(tree)) Space Complexity: O(max_depth(tree)) (The input and output generally do not count towards the space com ...
Problem https://leetcode.com/problems/diameter-of-binary-tree/description/ Solution Time Complexity: O(len(tree)) Space Complexity: O(max_depth(tree) * len(leaves)) (The input and output generally do ...
Problem https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/ Solution Time Complexity: O(len(tree)) Space Complexity: O(max_depth(tree)) (The input and output generally do not c ...
Problem https://leetcode.com/problems/minimum-depth-of-binary-tree/description/ Solution Time Complexity: O(len(tree)) Space Complexity: O(max_depth(tree)) (The input and output generally do not count ...
用 AWS EC2 建立新伺服器 建立新個體 開啟 AWS 進入 EC2 在右上角選擇伺服器建置地區 點選「啟動執行個體」以建立新個體 AMI (Amazon Machine Image; 應用程式和作業系統映像) 選擇 SUSE Linux Enterprise Server 15 SP5 (HVM), SSD Volume Type 網路設定 設定儲存:1x 30 GiB gp3 根磁碟區 啟 ...