摘要:
segments(runtime) & sections(link time) A segment points to an absolute address in the memory, and specify how many bytes are contained in that segmen 阅读全文
摘要:
比较有意思的回溯题, 记录一下 class Solution { vector<string> res {}; public: vector<string> generateParenthesis(int n) { string s; // 0 -> number of open parenth b 阅读全文
摘要:
path sum I DFS+判断 https://leetcode.com/problems/path-sum/ class Solution { public: bool hasPathSum(TreeNode* root, int sum) { if (!root) return false; 阅读全文
摘要:
1.图表示 Adjacent list vector<int> adj[N] weighted graph vector<pair<int,int>> adj[N]; adjacent matrix int adj[N][N]; edge list vector<pair<int, int>> ed 阅读全文
摘要:
最大最小值DP Choose minimum (maximum) path among all possible paths before the current state, then add value for the current state. routes[i] = min(routes[ 阅读全文