A1go

37/53ページ

[Computer Science] Stack / Heap Memory

Stack Memory 使用 stack 後進先出 (Last In First Out) 的概念 用以保存區域變數 (loval variables) 使用暫時性的記憶體空間, 一旦任務完成(函式執行結束後),會自動被抹去 Heap Memory 保存全域變數 (global variables)

         続きを読む

Leetcode # 101. Symmetric Tree

https://leetcode.com/problems/symmetric-tree/ Solution Time Complexity: O(len(tree)) Space Complexity: O(len(tree)) (The input and output generally do not count towards the space complexity.) class So ...

         続きを読む
1 ... 37 ... 53
Bitnami