提交 053b3027 编写于 作者: ToTensor's avatar ToTensor

增加习题数量

上级 6ad114c3
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "672b66254337491fa4c259201dff5c7c",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "14ab4d85d03c4c1e9bae31166d22c95b",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "42d0f88da8434410bbeb20c494e40359",
"author": "csdn.net",
"keywords": "树,二叉搜索树,数组,分治,二叉树"
"keywords": "树,二叉搜索树,数组,分治,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "1c1d9f792cc84d2bb4bb1ef93281f4fc",
"author": "csdn.net",
"keywords": "树,深度优先搜索,二叉树"
"keywords": "树,深度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "eff5f836db954d70a569abed5ab33275",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "062f086ad7714ec0972b404dea1f2d5d",
"author": "csdn.net",
"keywords": "树,深度优先搜索,二叉树"
"keywords": "树,深度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "f1d66b19312c4c78ace8697acb74a2c7",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "1db77f4044264ab9ac22c7ae33720199",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "ccc2aad185964504ae2ad5e26e6a3d5b",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "c5c580bc2d6e44b1915e9d0b7b297dea",
"author": "csdn.net",
"keywords": "贪心,数组,动态规划"
"keywords": "贪心,数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "4494efbab4814171a54ce41adcb45eae",
"author": "csdn.net",
"keywords": "双指针,字符串"
"keywords": "双指针,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "ff6c003296da40eeaf2b8313f359ff96",
"author": "csdn.net",
"keywords": "位运算,数组"
"keywords": "位运算,数组",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "a0cd256a454c4708ade034055b3c2d27",
"author": "csdn.net",
"keywords": "哈希表,链表,双指针"
"keywords": "哈希表,链表,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "39babd61b271490cb6415284b6e05eb5",
"author": "csdn.net",
"keywords": "栈,树,深度优先搜索,二叉树"
"keywords": "栈,树,深度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "8436b24b75714318a55242d1a0bc863a",
"author": "csdn.net",
"keywords": "栈,树,深度优先搜索,二叉树"
"keywords": "栈,树,深度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "a8fcaf74a25746008bc8052396b6d03d",
"author": "csdn.net",
"keywords": "栈,设计"
"keywords": "栈,设计",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "8521589a445c45d9ac56f1864496e2e9",
"author": "csdn.net",
"keywords": "数组,双指针,二分查找"
"keywords": "数组,双指针,二分查找",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "38a29f7f99734ae9905da9059c67b34a",
"author": "csdn.net",
"keywords": "数学,字符串"
"keywords": "数学,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "13c7f88edeac4365a94866390f6ec8a4",
"author": "csdn.net",
"keywords": "数组,哈希表,分治,计数,排序"
"keywords": "数组,哈希表,分治,计数,排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "d2fcc6a04d4f4c54bc47bd175dc76a8c",
"author": "csdn.net",
"keywords": "数学,字符串"
"keywords": "数学,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "b44eca465b3142e686ce6c2abdde09b6",
"author": "csdn.net",
"keywords": "数学"
"keywords": "数学",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "192a41fa78f94fb4a61b2e637cc02185",
"author": "csdn.net",
"keywords": "位运算,分治"
"keywords": "位运算,分治",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "fa66dcd535544b94bad5b9e43593bea7",
"author": "csdn.net",
"keywords": "位运算"
"keywords": "位运算",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "f0242839ac7946848bc8875703215c11",
"author": "csdn.net",
"keywords": "哈希表,数学,双指针"
"keywords": "哈希表,数学,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "f3ba2ff196b945a2bf27cfd550d67616",
"author": "csdn.net",
"keywords": "递归,链表"
"keywords": "递归,链表",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "c45c0162aa7b45e99b61f124096791c7",
"author": "csdn.net",
"keywords": "数组,数学,枚举,数论"
"keywords": "数组,数学,枚举,数论",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "d570871f659447039e0b18ea93e03324",
"author": "csdn.net",
"keywords": "哈希表,字符串"
"keywords": "哈希表,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "60a7ec12746543db858002c722581fd4",
"author": "csdn.net",
"keywords": "递归,链表"
"keywords": "递归,链表",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "f54e05259acc4aff898ab42b96635ec3",
"author": "csdn.net",
"keywords": "数组,哈希表,排序"
"keywords": "数组,哈希表,排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "141a6df1ad1340e3a97345ab5dff0b0b",
"author": "csdn.net",
"keywords": "数组,哈希表,滑动窗口"
"keywords": "数组,哈希表,滑动窗口",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "ca3fc13371004d43aa49fbf17207c9dd",
"author": "csdn.net",
"keywords": "栈,设计,队列"
"keywords": "栈,设计,队列",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "aa9c6b3d9953414b90d6af680d782643",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "6b017afad3d94b10adabd5623ab8c0b2",
"author": "csdn.net",
"keywords": "数组"
"keywords": "数组",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "5995f80cc5334d03b2909c0cf87e6483",
"author": "csdn.net",
"keywords": "位运算,递归,数学"
"keywords": "位运算,递归,数学",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "d0c31ea817924ac0b91f30e846b3e1ad",
"author": "csdn.net",
"keywords": "栈,设计,队列"
"keywords": "栈,设计,队列",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "1ab6992ae398412384eaf71d75649036",
"author": "csdn.net",
"keywords": "栈,递归,链表,双指针"
"keywords": "栈,递归,链表,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "96e11cec69864ccc9304320780b26f50",
"author": "csdn.net",
"keywords": "树,深度优先搜索,二叉搜索树,二叉树"
"keywords": "树,深度优先搜索,二叉搜索树,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "596d96c92b4b46c39c8f9a5731941081",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "1a8b3997ea044b9aa0fc4b4c425c39a5",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "418607231ee44c04bf6bbb9e29f3ad69",
"author": "csdn.net",
"keywords": "树,二叉搜索树,数组,分治,二叉树"
"keywords": "树,二叉搜索树,数组,分治,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "527b626cb0ac45e0bb5440fc57ba7aaf",
"author": "csdn.net",
"keywords": "树,深度优先搜索,二叉树"
"keywords": "树,深度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "0d322201b5c84b42963c70f0d58a3b14",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "d31b89d8cc584f96b2d037e3bd0c270b",
"author": "csdn.net",
"keywords": "树,深度优先搜索,二叉树"
"keywords": "树,深度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "a31850a1e76b4f1e88bd85c9c24ec688",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "9d2fe777ecec45f8ba4729b64a610a63",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "c7e978e2413d43bf91613f4e6ff13213",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "8603270bc7f24c5491c77be4ccb437ce",
"author": "csdn.net",
"keywords": "贪心,数组,动态规划"
"keywords": "贪心,数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "14ba2edd5caa47d98a9d42a3dcbe1889",
"author": "csdn.net",
"keywords": "双指针,字符串"
"keywords": "双指针,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "ae412fd242cc4bb4a36d550479a9ab13",
"author": "csdn.net",
"keywords": "位运算,数组"
"keywords": "位运算,数组",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "c1ed8b0c386f4957a33dae2b72214ebc",
"author": "csdn.net",
"keywords": "哈希表,链表,双指针"
"keywords": "哈希表,链表,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "801926d6688b49c3aa255367ef29d997",
"author": "csdn.net",
"keywords": "栈,树,深度优先搜索,二叉树"
"keywords": "栈,树,深度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "54d6ae2161f2477997472d9efe8863c6",
"author": "csdn.net",
"keywords": "栈,树,深度优先搜索,二叉树"
"keywords": "栈,树,深度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "4bb5f28525fe48478a71b212cd28e59e",
"author": "csdn.net",
"keywords": "栈,设计"
"keywords": "栈,设计",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "d212ea52512549ee9e3064e2add0ba00",
"author": "csdn.net",
"keywords": "哈希表,链表,双指针"
"keywords": "哈希表,链表,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "35f3bc4609d04f7a84232885378e69c6",
"author": "csdn.net",
"keywords": "数组,双指针,二分查找"
"keywords": "数组,双指针,二分查找",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "93d222e11bc247efb7e2e1bf99b1db48",
"author": "csdn.net",
"keywords": "数学,字符串"
"keywords": "数学,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "02def488570747418e9d712a1f26f324",
"author": "csdn.net",
"keywords": "数组,哈希表,分治,计数,排序"
"keywords": "数组,哈希表,分治,计数,排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "aec8ebe4c8c34fc39cf954a403a34847",
"author": "csdn.net",
"keywords": "数学,字符串"
"keywords": "数学,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "6b2211be24844846afddd9cec234f4e5",
"author": "csdn.net",
"keywords": "数学"
"keywords": "数学",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "1ba368a03960439599d6d1b5e6867284",
"author": "csdn.net",
"keywords": "位运算,分治"
"keywords": "位运算,分治",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "430b7b13abf747cc86a8ceb4b3db33d8",
"author": "csdn.net",
"keywords": "位运算"
"keywords": "位运算",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "2ae80a2197fc4ecf8a5cf1a7b5a944fe",
"author": "csdn.net",
"keywords": "哈希表,数学,双指针"
"keywords": "哈希表,数学,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "ca6e65c26e5545acac0eb3d2f4da1baa",
"author": "csdn.net",
"keywords": "递归,链表"
"keywords": "递归,链表",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "c89c149170ef4f7f80640c0daaa90947",
"author": "csdn.net",
"keywords": "数组,数学,枚举,数论"
"keywords": "数组,数学,枚举,数论",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "59b9df4c8d5e478bbcc729f611519790",
"author": "csdn.net",
"keywords": "哈希表,字符串"
"keywords": "哈希表,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "2b89e3dc80484eda9e3ce71f840ca07e",
"author": "csdn.net",
"keywords": "递归,链表"
"keywords": "递归,链表",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "aba9b369349943d094794981c2d6d224",
"author": "csdn.net",
"keywords": "数组,哈希表,排序"
"keywords": "数组,哈希表,排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "ba81057039ca4027a1dec611797bbdc6",
"author": "csdn.net",
"keywords": "数组,哈希表,滑动窗口"
"keywords": "数组,哈希表,滑动窗口",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "ef25569152e840bba97c52891b63d50c",
"author": "csdn.net",
"keywords": "栈,设计,队列"
"keywords": "栈,设计,队列",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "da18811d80254852b6599c3d89672d3d",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "1846ac34e8624af7b4080f3b6af1b5aa",
"author": "csdn.net",
"keywords": "数组"
"keywords": "数组",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "0aa6b38595e340909e8d152c22a9ae16",
"author": "csdn.net",
"keywords": "位运算,递归,数学"
"keywords": "位运算,递归,数学",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "6ce261204e1f4348a5f2ad5e526bd238",
"author": "csdn.net",
"keywords": "栈,设计,队列"
"keywords": "栈,设计,队列",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "f2b560e10a604f1fa28ce4e46886c8dc",
"author": "csdn.net",
"keywords": "栈,递归,链表,双指针"
"keywords": "栈,递归,链表,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "dcba827a84eb45ef889091d28e2b99f8",
"author": "csdn.net",
"keywords": "数组,数学,双指针"
"keywords": "数组,数学,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "815e7d0c8bcb417a8ee8f6b8a80c72ee",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
{
"node_id": "dailycode-a2ccc65d66f7450e8405eefda34c259d",
"node_id": "dailycode-aafb162733204b54ad1659371e1b8f4a",
"keywords": [],
"children": [],
"keywords_must": [],
......
{
"type": "code_options",
"source": "solution.md",
"exercise_id": "682f41a955f04da9bb0feb3d063f8b3e",
"exercise_id": "b68c4b0a4f974ab4b38ec8d3a8eb9c77",
"author": "csdn.net",
"keywords": "树,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
# 二叉树的层序遍历
# 二叉树的右视图
<p>你一个二叉树,请你返回其按 <strong>层序遍历</strong> 得到的节点值。 (即逐层地,从左到右访问所有节点)</p>
<p>定一个二叉树的 <strong>根节点</strong> <code>root</code>,想象自己站在它的右侧,按照从顶部到底部的顺序,返回从右侧所能看到的节点值</p>
<p> </p>
<p><strong>示例:</strong><br />
二叉树:<code>[3,9,20,null,null,15,7]</code>,</p>
<p><strong>示例 1:</strong></p>
<p><img src="https://assets.leetcode.com/uploads/2021/02/14/tree.jpg" style="width: 270px; " /></p>
<pre>
3
/ \
9 20
/ \
15 7
<strong>输入:</strong> [1,2,3,null,5,null,4]
<strong>输出:</strong> [1,3,4]
</pre>
<p>返回其层序遍历结果:</p>
<p><strong>示例 2:</strong></p>
<pre>
[
[3],
[9,20],
[15,7]
]
<strong>输入:</strong> [1,null,3]
<strong>输出:</strong> [1,3]
</pre>
<p><strong>示例 3:</strong></p>
<pre>
<strong>输入:</strong> []
<strong>输出:</strong> []
</pre>
<p> </p>
<p><strong>提示:</strong></p>
<ul>
<li>二叉树的节点个数的范围是 <code>[0,100]</code></li>
<li><meta charset="UTF-8" /><code>-100 <= Node.val <= 100</code> </li>
</ul>
## template
......@@ -40,29 +51,24 @@ public class TreeNode {
}
class Solution {
public List<List<Integer>> levelOrder(TreeNode root) {
List<List<Integer>> l = new ArrayList<>();
Queue<TreeNode> q = new LinkedList<TreeNode>();
if (root != null) {
q.add(root);
}
while (!q.isEmpty()) {
List<Integer> l2 = new ArrayList<>();
int number = q.size();
while (number > 0) {
TreeNode t = q.poll();
l2.add(t.val);
if (t.left != null) {
q.add(t.left);
}
if (t.right != null) {
q.add(t.right);
}
number--;
public List<Integer> rightSideView(TreeNode root) {
List<Integer> list = new ArrayList<Integer>();
if (root == null)
return list;
list.add(root.val);
List<Integer> list1 = rightSideView(root.right);
List<Integer> list2 = rightSideView(root.left);
list.addAll(list1);
if (list1.size() < list2.size()) {
for (int i = list1.size(); i < list2.size(); i++) {
list.add(list2.get(i));
}
l.add(l2);
}
return l;
return list;
}
}
......
{
"node_id": "dailycode-a10ff4a447fb49fca996a9c4c95b4991",
"node_id": "dailycode-805cf116376a4e7bbb4b28835ecb711d",
"keywords": [],
"children": [],
"keywords_must": [],
......
{
"type": "code_options",
"source": "solution.md",
"exercise_id": "622d6183d44744c68b49f96bb9c87452",
"exercise_id": "e7be0db8bb5844eba148a6e28f727ae3",
"author": "csdn.net",
"keywords": "树,广度优先搜索,二叉树"
"keywords": "深度优先搜索,广度优先搜索,并查集,数组,矩阵",
"notebook_enable": true
}
\ No newline at end of file
# 二叉树的锯齿形层序遍历
# 岛屿数量
<p>定一个二叉树,返回其节点值的锯齿形层序遍历。(即先从左往右,再从右往左进行下一层遍历,以此类推,层与层之间交替进行)</p>
<p>你一个由 <code>'1'</code>(陆地)和 <code>'0'</code>(水)组成的的二维网格,请你计算网格中岛屿的数量</p>
<p>例如:<br />
给定二叉树 <code>[3,9,20,null,null,15,7]</code>,</p>
<p>岛屿总是被水包围,并且每座岛屿只能由水平方向和/或竖直方向上相邻的陆地连接形成。</p>
<p>此外,你可以假设该网格的四条边均被水包围。</p>
<p> </p>
<p><strong>示例 1:</strong></p>
<pre>
3
/ \
9 20
/ \
15 7
<strong>输入:</strong>grid = [
["1","1","1","1","0"],
["1","1","0","1","0"],
["1","1","0","0","0"],
["0","0","0","0","0"]
]
<strong>输出:</strong>1
</pre>
<p>返回锯齿形层序遍历如下:</p>
<p><strong>示例 2:</strong></p>
<pre>
[
[3],
[20,9],
[15,7]
<strong>输入:</strong>grid = [
["1","1","0","0","0"],
["1","1","0","0","0"],
["0","0","1","0","0"],
["0","0","0","1","1"]
]
<strong>输出:</strong>3
</pre>
<p> </p>
## template
<p><strong>提示:</strong></p>
```java
<ul>
<li><code>m == grid.length</code></li>
<li><code>n == grid[i].length</code></li>
<li><code>1 <= m, n <= 300</code></li>
<li><code>grid[i][j]</code> 的值为 <code>'0'</code><code>'1'</code></li>
</ul>
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
## template
```java
class Solution {
public List<List<Integer>> zigzagLevelOrder(TreeNode root) {
List<List<Integer>> list = new LinkedList<>();
if (root == null) {
return list;
}
Stack<TreeNode> stack1 = new Stack<>();
stack1.push(root);
boolean postive = true;
while (!stack1.isEmpty()) {
Stack<TreeNode> stack2 = new Stack<>();
List<Integer> subList = new LinkedList<>();
while (!stack1.isEmpty()) {
TreeNode current = stack1.pop();
subList.add(current.val);
if (postive) {
if (current.left != null) {
stack2.push(current.left);
}
if (current.right != null) {
stack2.push(current.right);
}
} else {
if (current.right != null) {
stack2.push(current.right);
}
if (current.left != null) {
stack2.push(current.left);
}
public int numIslands(char[][] grid) {
int islandNum = 0;
for (int i = 0; i < grid.length; i++) {
for (int j = 0; j < grid[0].length; j++) {
if (grid[i][j] == '1') {
infect(grid, i, j);
islandNum++;
}
}
postive = !postive;
stack1 = stack2;
list.add(subList);
}
return islandNum;
}
return list;
public void infect(char[][] grid, int i, int j) {
if (i < 0 || i >= grid.length ||
j < 0 || j >= grid[0].length || grid[i][j] != '1') {
return;
}
grid[i][j] = '2';
infect(grid, i + 1, j);
infect(grid, i - 1, j);
infect(grid, i, j + 1);
infect(grid, i, j - 1);
}
}
```
## 答案
......
{
"node_id": "dailycode-aafb162733204b54ad1659371e1b8f4a",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": [],
"export": [
"solution.json"
]
}
\ No newline at end of file
{
"type": "code_options",
"source": "solution.md",
"exercise_id": "b68c4b0a4f974ab4b38ec8d3a8eb9c77",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
}
\ No newline at end of file
# 二叉树的右视图
<p>给定一个二叉树的 <strong>根节点</strong> <code>root</code>,想象自己站在它的右侧,按照从顶部到底部的顺序,返回从右侧所能看到的节点值。</p>
<p> </p>
<p><strong>示例 1:</strong></p>
<p><img src="https://assets.leetcode.com/uploads/2021/02/14/tree.jpg" style="width: 270px; " /></p>
<pre>
<strong>输入:</strong> [1,2,3,null,5,null,4]
<strong>输出:</strong> [1,3,4]
</pre>
<p><strong>示例 2:</strong></p>
<pre>
<strong>输入:</strong> [1,null,3]
<strong>输出:</strong> [1,3]
</pre>
<p><strong>示例 3:</strong></p>
<pre>
<strong>输入:</strong> []
<strong>输出:</strong> []
</pre>
<p> </p>
<p><strong>提示:</strong></p>
<ul>
<li>二叉树的节点个数的范围是 <code>[0,100]</code></li>
<li><meta charset="UTF-8" /><code>-100 <= Node.val <= 100</code> </li>
</ul>
## template
```java
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
class Solution {
public List<Integer> rightSideView(TreeNode root) {
List<Integer> list = new ArrayList<Integer>();
if (root == null)
return list;
list.add(root.val);
List<Integer> list1 = rightSideView(root.right);
List<Integer> list2 = rightSideView(root.left);
list.addAll(list1);
if (list1.size() < list2.size()) {
for (int i = list1.size(); i < list2.size(); i++) {
list.add(list2.get(i));
}
}
return list;
}
}
```
## 答案
```java
```
## 选项
### A
```java
```
### B
```java
```
### C
```java
```
\ No newline at end of file
{
"node_id": "dailycode-805cf116376a4e7bbb4b28835ecb711d",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": [],
"export": [
"solution.json"
]
}
\ No newline at end of file
{
"type": "code_options",
"source": "solution.md",
"exercise_id": "e7be0db8bb5844eba148a6e28f727ae3",
"author": "csdn.net",
"keywords": "深度优先搜索,广度优先搜索,并查集,数组,矩阵"
}
\ No newline at end of file
# 岛屿数量
<p>给你一个由 <code>'1'</code>(陆地)和 <code>'0'</code>(水)组成的的二维网格,请你计算网格中岛屿的数量。</p>
<p>岛屿总是被水包围,并且每座岛屿只能由水平方向和/或竖直方向上相邻的陆地连接形成。</p>
<p>此外,你可以假设该网格的四条边均被水包围。</p>
<p> </p>
<p><strong>示例 1:</strong></p>
<pre>
<strong>输入:</strong>grid = [
["1","1","1","1","0"],
["1","1","0","1","0"],
["1","1","0","0","0"],
["0","0","0","0","0"]
]
<strong>输出:</strong>1
</pre>
<p><strong>示例 2:</strong></p>
<pre>
<strong>输入:</strong>grid = [
["1","1","0","0","0"],
["1","1","0","0","0"],
["0","0","1","0","0"],
["0","0","0","1","1"]
]
<strong>输出:</strong>3
</pre>
<p> </p>
<p><strong>提示:</strong></p>
<ul>
<li><code>m == grid.length</code></li>
<li><code>n == grid[i].length</code></li>
<li><code>1 <= m, n <= 300</code></li>
<li><code>grid[i][j]</code> 的值为 <code>'0'</code><code>'1'</code></li>
</ul>
## template
```java
class Solution {
public int numIslands(char[][] grid) {
int islandNum = 0;
for (int i = 0; i < grid.length; i++) {
for (int j = 0; j < grid[0].length; j++) {
if (grid[i][j] == '1') {
infect(grid, i, j);
islandNum++;
}
}
}
return islandNum;
}
public void infect(char[][] grid, int i, int j) {
if (i < 0 || i >= grid.length ||
j < 0 || j >= grid[0].length || grid[i][j] != '1') {
return;
}
grid[i][j] = '2';
infect(grid, i + 1, j);
infect(grid, i - 1, j);
infect(grid, i, j + 1);
infect(grid, i, j - 1);
}
}
```
## 答案
```java
```
## 选项
### A
```java
```
### B
```java
```
### C
```java
```
\ No newline at end of file
{
"node_id": "dailycode-a2ccc65d66f7450e8405eefda34c259d",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": [],
"export": [
"solution.json"
]
}
\ No newline at end of file
{
"type": "code_options",
"source": "solution.md",
"exercise_id": "682f41a955f04da9bb0feb3d063f8b3e",
"author": "csdn.net",
"keywords": "树,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
# 二叉树的层序遍历
<p>给你一个二叉树,请你返回其按 <strong>层序遍历</strong> 得到的节点值。 (即逐层地,从左到右访问所有节点)。</p>
<p> </p>
<p><strong>示例:</strong><br />
二叉树:<code>[3,9,20,null,null,15,7]</code>,</p>
<pre>
3
/ \
9 20
/ \
15 7
</pre>
<p>返回其层序遍历结果:</p>
<pre>
[
[3],
[9,20],
[15,7]
]
</pre>
## template
```java
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
class Solution {
public List<List<Integer>> levelOrder(TreeNode root) {
List<List<Integer>> l = new ArrayList<>();
Queue<TreeNode> q = new LinkedList<TreeNode>();
if (root != null) {
q.add(root);
}
while (!q.isEmpty()) {
List<Integer> l2 = new ArrayList<>();
int number = q.size();
while (number > 0) {
TreeNode t = q.poll();
l2.add(t.val);
if (t.left != null) {
q.add(t.left);
}
if (t.right != null) {
q.add(t.right);
}
number--;
}
l.add(l2);
}
return l;
}
}
```
## 答案
```java
```
## 选项
### A
```java
```
### B
```java
```
### C
```java
```
\ No newline at end of file
{
"node_id": "dailycode-a10ff4a447fb49fca996a9c4c95b4991",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": [],
"export": [
"solution.json"
]
}
\ No newline at end of file
{
"type": "code_options",
"source": "solution.md",
"exercise_id": "622d6183d44744c68b49f96bb9c87452",
"author": "csdn.net",
"keywords": "树,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
# 二叉树的锯齿形层序遍历
<p>给定一个二叉树,返回其节点值的锯齿形层序遍历。(即先从左往右,再从右往左进行下一层遍历,以此类推,层与层之间交替进行)。</p>
<p>例如:<br />
给定二叉树 <code>[3,9,20,null,null,15,7]</code>,</p>
<pre>
3
/ \
9 20
/ \
15 7
</pre>
<p>返回锯齿形层序遍历如下:</p>
<pre>
[
[3],
[20,9],
[15,7]
]
</pre>
## template
```java
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
class Solution {
public List<List<Integer>> zigzagLevelOrder(TreeNode root) {
List<List<Integer>> list = new LinkedList<>();
if (root == null) {
return list;
}
Stack<TreeNode> stack1 = new Stack<>();
stack1.push(root);
boolean postive = true;
while (!stack1.isEmpty()) {
Stack<TreeNode> stack2 = new Stack<>();
List<Integer> subList = new LinkedList<>();
while (!stack1.isEmpty()) {
TreeNode current = stack1.pop();
subList.add(current.val);
if (postive) {
if (current.left != null) {
stack2.push(current.left);
}
if (current.right != null) {
stack2.push(current.right);
}
} else {
if (current.right != null) {
stack2.push(current.right);
}
if (current.left != null) {
stack2.push(current.left);
}
}
}
postive = !postive;
stack1 = stack2;
list.add(subList);
}
return list;
}
}
```
## 答案
```java
```
## 选项
### A
```java
```
### B
```java
```
### C
```java
```
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "8fa4959ae71f49b8bc134a8a20849f36",
"author": "csdn.net",
"keywords": "树,数组,哈希表,分治,二叉树"
"keywords": "树,数组,哈希表,分治,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "12c18413a51d4dc0aaff19498b606d12",
"author": "csdn.net",
"keywords": "树,数组,哈希表,分治,二叉树"
"keywords": "树,数组,哈希表,分治,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "c243d27f11ae40178101f3a631183c6e",
"author": "csdn.net",
"keywords": "树,广度优先搜索,二叉树"
"keywords": "树,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "4f2c0c8d00ef4f23ae5d13ea794ea680",
"author": "csdn.net",
"keywords": "树,二叉搜索树,链表,分治,二叉树"
"keywords": "树,二叉搜索树,链表,分治,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "b7b39f6a4e2c422e9ea675fdb15c7443",
"author": "csdn.net",
"keywords": "树,深度优先搜索,回溯,二叉树"
"keywords": "树,深度优先搜索,回溯,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "e45a86e778a94466bf15522cb8b48d6d",
"author": "csdn.net",
"keywords": "栈,树,深度优先搜索,链表,二叉树"
"keywords": "栈,树,深度优先搜索,链表,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "6f1eb2d1c9aa4dc6a97e7c8076573729",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "07b8ec4db87d47f6a9e1d8c0748271bb",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "636abfea1a2b4607859af3c78cb96e84",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "17afc370460f46c0adbaab615712518f",
"author": "csdn.net",
"keywords": "并查集,数组,哈希表"
"keywords": "并查集,数组,哈希表",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "4ae056aaec24487aa6c7c5664dcd9106",
"author": "csdn.net",
"keywords": "树,深度优先搜索,二叉树"
"keywords": "树,深度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "be34956c33dd4d54bbed87721b778ad6",
"author": "csdn.net",
"keywords": "深度优先搜索,广度优先搜索,并查集,数组,矩阵"
"keywords": "深度优先搜索,广度优先搜索,并查集,数组,矩阵",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "d946d51d15644bc6b5147e846d0a12d4",
"author": "csdn.net",
"keywords": "字符串,动态规划,回溯"
"keywords": "字符串,动态规划,回溯",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "b3d073ab49ef4e6aae7f03cefcb13959",
"author": "csdn.net",
"keywords": "深度优先搜索,广度优先搜索,图,哈希表"
"keywords": "深度优先搜索,广度优先搜索,图,哈希表",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "650fb194bc8b4e1fad675188558ba5fe",
"author": "csdn.net",
"keywords": "贪心,数组"
"keywords": "贪心,数组",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "45585dd9d6054a9cb9b039029175d81b",
"author": "csdn.net",
"keywords": "位运算,数组"
"keywords": "位运算,数组",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "5392710266504c69ac6bb4002bfd7407",
"author": "csdn.net",
"keywords": "哈希表,链表"
"keywords": "哈希表,链表",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "0e368bf69c094190966ba3515e36d864",
"author": "csdn.net",
"keywords": "字典树,记忆化搜索,哈希表,字符串,动态规划"
"keywords": "字典树,记忆化搜索,哈希表,字符串,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "e122bca4653a4a05a64157c9d3afb931",
"author": "csdn.net",
"keywords": "哈希表,链表,双指针"
"keywords": "哈希表,链表,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "197a8b12e097460ab3a266818f16699c",
"author": "csdn.net",
"keywords": "栈,递归,链表,双指针"
"keywords": "栈,递归,链表,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "fcd911bde6db4e1f8ba109f6e3dd6a7e",
"author": "csdn.net",
"keywords": "设计,哈希表,链表,双向链表"
"keywords": "设计,哈希表,链表,双向链表",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "6267d9fe114f48b890c6ed28dc63da05",
"author": "csdn.net",
"keywords": "链表,排序"
"keywords": "链表,排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "71419e1d7bc74b23958e1b78923ad9a1",
"author": "csdn.net",
"keywords": "链表,双指针,分治,排序,归并排序"
"keywords": "链表,双指针,分治,排序,归并排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "30c3029500da406d97c9f663305f3a22",
"author": "csdn.net",
"keywords": "栈,数组,数学"
"keywords": "栈,数组,数学",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "2a8b52e0c9894ceea4d669185da8bafa",
"author": "csdn.net",
"keywords": "双指针,字符串"
"keywords": "双指针,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "65950a04beae457f82920300e5028918",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "27c7eb432aa541659f91e42739ce47c5",
"author": "csdn.net",
"keywords": "数组,二分查找"
"keywords": "数组,二分查找",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "777e3a0d404c492096839996e9bd0388",
"author": "csdn.net",
"keywords": "数组,二分查找"
"keywords": "数组,二分查找",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "244c65fcb46345da8a6f79f4a63934ef",
"author": "csdn.net",
"keywords": "双指针,字符串"
"keywords": "双指针,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "1ff02b73fbc84fdca3e87f23ac478ce1",
"author": "csdn.net",
"keywords": "哈希表,数学,字符串"
"keywords": "哈希表,数学,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "e18c19c6ef0d4268a8154c9b3e1a2f1a",
"author": "csdn.net",
"keywords": "栈,树,设计,二叉搜索树,二叉树,迭代器"
"keywords": "栈,树,设计,二叉搜索树,二叉树,迭代器",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "694715c7a1484e80b939cbaed3256af1",
"author": "csdn.net",
"keywords": "贪心,字符串,排序"
"keywords": "贪心,字符串,排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "84d39ae3a62d48309d5c5dda130a901f",
"author": "csdn.net",
"keywords": "位运算,哈希表,字符串,滑动窗口,哈希函数,滚动哈希"
"keywords": "位运算,哈希表,字符串,滑动窗口,哈希函数,滚动哈希",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "ea8fa229d3c243a4a6f6ebfdccdd5bfd",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "b1ba5727356c443b859bfb64fc002898",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
{
"node_id": "dailycode-d39c19f3422842d4bd0ec6adf5a12e78",
"node_id": "dailycode-72651cf7970c4a9c837aee8016c169d1",
"keywords": [],
"children": [],
"keywords_must": [],
......
{
"type": "code_options",
"source": "solution.md",
"exercise_id": "6e676186276f4879bfcd9fb546041c14",
"exercise_id": "22a947b155ff40e9825fdf1bb533aa04",
"author": "csdn.net",
"keywords": "树,广度优先搜索,二叉树"
"keywords": "深度优先搜索,广度优先搜索,并查集,数组,矩阵",
"notebook_enable": true
}
\ No newline at end of file
# 二叉树的层序遍历
# 岛屿数量
<p>给你一个二叉树,请你返回其按 <strong>层序遍历</strong> 得到的节点值。 (即逐层地,从左到右访问所有节点)。</p>
<p>给你一个由 <code>'1'</code>(陆地)和 <code>'0'</code>(水)组成的的二维网格,请你计算网格中岛屿的数量。</p>
<p>岛屿总是被水包围,并且每座岛屿只能由水平方向和/或竖直方向上相邻的陆地连接形成。</p>
<p>此外,你可以假设该网格的四条边均被水包围。</p>
<p> </p>
<p><strong>示例:</strong><br />
二叉树:<code>[3,9,20,null,null,15,7]</code>,</p>
<p><strong>示例 1:</strong></p>
<pre>
3
/ \
9 20
/ \
15 7
<strong>输入:</strong>grid = [
["1","1","1","1","0"],
["1","1","0","1","0"],
["1","1","0","0","0"],
["0","0","0","0","0"]
]
<strong>输出:</strong>1
</pre>
<p>返回其层序遍历结果:</p>
<p><strong>示例 2:</strong></p>
<pre>
[
[3],
[9,20],
[15,7]
<strong>输入:</strong>grid = [
["1","1","0","0","0"],
["1","1","0","0","0"],
["0","0","1","0","0"],
["0","0","0","1","1"]
]
<strong>输出:</strong>3
</pre>
<p> </p>
<p><strong>提示:</strong></p>
<ul>
<li><code>m == grid.length</code></li>
<li><code>n == grid[i].length</code></li>
<li><code>1 <= m, n <= 300</code></li>
<li><code>grid[i][j]</code> 的值为 <code>'0'</code><code>'1'</code></li>
</ul>
## template
```python
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def levelOrder(self, root):
"""
:type root: TreeNode
:rtype: List[List[int]]
"""
if not root:
return []
queue, res = [root], []
while queue:
size = len(queue)
temp = []
for i in range(size):
data = queue.pop(0)
temp.append(data.val)
if data.left:
queue.append(data.left)
if data.right:
queue.append(data.right)
res.append(temp)
return res
class Solution:
def depthSearch(self, grid, i, j):
if i < 0 or j < 0 or i >= len(grid) or j >= len(grid[0]):
return
if grid[i][j] == "0":
return
grid[i][j] = "0"
self.depthSearch(grid, i - 1, j)
self.depthSearch(grid, i + 1, j)
self.depthSearch(grid, i, j - 1)
self.depthSearch(grid, i, j + 1)
def numIslands(self, grid: List[List[str]]) -> int:
if not grid:
return 0
w, h = len(grid[0]), len(grid)
cnt = 0
for i in range(h):
for j in range(w):
if grid[i][j] == "1":
self.depthSearch(grid, i, j)
cnt += 1
return cnt
```
......
{
"node_id": "dailycode-72651cf7970c4a9c837aee8016c169d1",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": [],
"export": [
"solution.json"
]
}
\ No newline at end of file
{
"type": "code_options",
"source": "solution.md",
"exercise_id": "22a947b155ff40e9825fdf1bb533aa04",
"author": "csdn.net",
"keywords": "深度优先搜索,广度优先搜索,并查集,数组,矩阵"
}
\ No newline at end of file
# 岛屿数量
<p>给你一个由 <code>'1'</code>(陆地)和 <code>'0'</code>(水)组成的的二维网格,请你计算网格中岛屿的数量。</p>
<p>岛屿总是被水包围,并且每座岛屿只能由水平方向和/或竖直方向上相邻的陆地连接形成。</p>
<p>此外,你可以假设该网格的四条边均被水包围。</p>
<p> </p>
<p><strong>示例 1:</strong></p>
<pre>
<strong>输入:</strong>grid = [
["1","1","1","1","0"],
["1","1","0","1","0"],
["1","1","0","0","0"],
["0","0","0","0","0"]
]
<strong>输出:</strong>1
</pre>
<p><strong>示例 2:</strong></p>
<pre>
<strong>输入:</strong>grid = [
["1","1","0","0","0"],
["1","1","0","0","0"],
["0","0","1","0","0"],
["0","0","0","1","1"]
]
<strong>输出:</strong>3
</pre>
<p> </p>
<p><strong>提示:</strong></p>
<ul>
<li><code>m == grid.length</code></li>
<li><code>n == grid[i].length</code></li>
<li><code>1 <= m, n <= 300</code></li>
<li><code>grid[i][j]</code> 的值为 <code>'0'</code><code>'1'</code></li>
</ul>
## template
```python
class Solution:
def depthSearch(self, grid, i, j):
if i < 0 or j < 0 or i >= len(grid) or j >= len(grid[0]):
return
if grid[i][j] == "0":
return
grid[i][j] = "0"
self.depthSearch(grid, i - 1, j)
self.depthSearch(grid, i + 1, j)
self.depthSearch(grid, i, j - 1)
self.depthSearch(grid, i, j + 1)
def numIslands(self, grid: List[List[str]]) -> int:
if not grid:
return 0
w, h = len(grid[0]), len(grid)
cnt = 0
for i in range(h):
for j in range(w):
if grid[i][j] == "1":
self.depthSearch(grid, i, j)
cnt += 1
return cnt
```
## 答案
```python
```
## 选项
### A
```python
```
### B
```python
```
### C
```python
```
\ No newline at end of file
{
"node_id": "dailycode-d39c19f3422842d4bd0ec6adf5a12e78",
"keywords": [],
"children": [],
"keywords_must": [],
"keywords_forbid": [],
"export": [
"solution.json"
]
}
\ No newline at end of file
{
"type": "code_options",
"source": "solution.md",
"exercise_id": "6e676186276f4879bfcd9fb546041c14",
"author": "csdn.net",
"keywords": "树,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
# 二叉树的层序遍历
<p>给你一个二叉树,请你返回其按 <strong>层序遍历</strong> 得到的节点值。 (即逐层地,从左到右访问所有节点)。</p>
<p> </p>
<p><strong>示例:</strong><br />
二叉树:<code>[3,9,20,null,null,15,7]</code>,</p>
<pre>
3
/ \
9 20
/ \
15 7
</pre>
<p>返回其层序遍历结果:</p>
<pre>
[
[3],
[9,20],
[15,7]
]
</pre>
## template
```python
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def levelOrder(self, root):
"""
:type root: TreeNode
:rtype: List[List[int]]
"""
if not root:
return []
queue, res = [root], []
while queue:
size = len(queue)
temp = []
for i in range(size):
data = queue.pop(0)
temp.append(data.val)
if data.left:
queue.append(data.left)
if data.right:
queue.append(data.right)
res.append(temp)
return res
```
## 答案
```python
```
## 选项
### A
```python
```
### B
```python
```
### C
```python
```
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "a556fe7a24864dd7ba234c963c36948f",
"author": "csdn.net",
"keywords": "树,广度优先搜索,二叉树"
"keywords": "树,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "6f8b176b8b2c40be9b35e4b7d7b02e5e",
"author": "csdn.net",
"keywords": "树,数组,哈希表,分治,二叉树"
"keywords": "树,数组,哈希表,分治,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "3b8c98553acc41259094988813abbfa1",
"author": "csdn.net",
"keywords": "树,数组,哈希表,分治,二叉树"
"keywords": "树,数组,哈希表,分治,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "6a4098c9e916419baa1969bad6b58b87",
"author": "csdn.net",
"keywords": "树,广度优先搜索,二叉树"
"keywords": "树,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "f5dd9b0f00a740e08275f50e60a4c7f6",
"author": "csdn.net",
"keywords": "树,二叉搜索树,链表,分治,二叉树"
"keywords": "树,二叉搜索树,链表,分治,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "e8cbf541031d4cd09451b10cc48997ef",
"author": "csdn.net",
"keywords": "树,深度优先搜索,回溯,二叉树"
"keywords": "树,深度优先搜索,回溯,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "f05df7761b5e4aeead805e01fdcd19c8",
"author": "csdn.net",
"keywords": "栈,树,深度优先搜索,链表,二叉树"
"keywords": "栈,树,深度优先搜索,链表,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "33c80fb572754e9fa104c8476e62e43a",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "65d11c29b2f545db8f4d5005f46c800c",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "188e7cbca8ee4afeab14b55fba460080",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "ad9db217ae1d4514958e2e572769a342",
"author": "csdn.net",
"keywords": "并查集,数组,哈希表"
"keywords": "并查集,数组,哈希表",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "76b4ac0db24f4b4a94c433efb15df60d",
"author": "csdn.net",
"keywords": "树,深度优先搜索,二叉树"
"keywords": "树,深度优先搜索,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "1b5c06284b79403ebc8112717830dd2f",
"author": "csdn.net",
"keywords": "深度优先搜索,广度优先搜索,并查集,数组,矩阵"
"keywords": "深度优先搜索,广度优先搜索,并查集,数组,矩阵",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "fb034d417e3642afb7be6a36ea17ec7d",
"author": "csdn.net",
"keywords": "字符串,动态规划,回溯"
"keywords": "字符串,动态规划,回溯",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "14ebb8bbca994ec4bc516ba42e910adf",
"author": "csdn.net",
"keywords": "深度优先搜索,广度优先搜索,图,哈希表"
"keywords": "深度优先搜索,广度优先搜索,图,哈希表",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "36185dedcad549708751361f56874bf5",
"author": "csdn.net",
"keywords": "贪心,数组"
"keywords": "贪心,数组",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "29824658e1d54db1a7184adbd1e37516",
"author": "csdn.net",
"keywords": "位运算,数组"
"keywords": "位运算,数组",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "56d73a6c6fc14885aca55e785ee7b1e6",
"author": "csdn.net",
"keywords": "哈希表,链表"
"keywords": "哈希表,链表",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "01894c4c2d7546b1bb57fd619362f1c6",
"author": "csdn.net",
"keywords": "字典树,记忆化搜索,哈希表,字符串,动态规划"
"keywords": "字典树,记忆化搜索,哈希表,字符串,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "8a80ca04f6ef482a9ce79e7043387844",
"author": "csdn.net",
"keywords": "哈希表,链表,双指针"
"keywords": "哈希表,链表,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "faaa889f3ee446238e3942ddccd5e050",
"author": "csdn.net",
"keywords": "栈,递归,链表,双指针"
"keywords": "栈,递归,链表,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "b14bc572b48d4588bf4310aaf9927ebe",
"author": "csdn.net",
"keywords": "设计,哈希表,链表,双向链表"
"keywords": "设计,哈希表,链表,双向链表",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "771f5289959844efb4f3e3dcf94228c4",
"author": "csdn.net",
"keywords": "链表,排序"
"keywords": "链表,排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "e2730b7376764544a6ea927fa978001f",
"author": "csdn.net",
"keywords": "链表,双指针,分治,排序,归并排序"
"keywords": "链表,双指针,分治,排序,归并排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "a12ba1c0b3a6463f96427d1ea2081fe8",
"author": "csdn.net",
"keywords": "栈,数组,数学"
"keywords": "栈,数组,数学",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "e9b73cb2875f492598d5b3043d9e3892",
"author": "csdn.net",
"keywords": "双指针,字符串"
"keywords": "双指针,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "2e6ccd7b70744a749a8836b8927e3f7b",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "c4942f6c3e044ee8a72480829e7932ad",
"author": "csdn.net",
"keywords": "数组,二分查找"
"keywords": "数组,二分查找",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "5e9817781af84a52b98f185b1a038379",
"author": "csdn.net",
"keywords": "数组,二分查找"
"keywords": "数组,二分查找",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "bfe463f60cc14a43b09285f5c7e76ddf",
"author": "csdn.net",
"keywords": "双指针,字符串"
"keywords": "双指针,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "ac307c03f75a42829372ee123e3d01c7",
"author": "csdn.net",
"keywords": "哈希表,数学,字符串"
"keywords": "哈希表,数学,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "f9056b7e01224bcfa51a3ced5cc76440",
"author": "csdn.net",
"keywords": "栈,树,设计,二叉搜索树,二叉树,迭代器"
"keywords": "栈,树,设计,二叉搜索树,二叉树,迭代器",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "48239df283334fd39c5d0c2744369c2a",
"author": "csdn.net",
"keywords": "贪心,字符串,排序"
"keywords": "贪心,字符串,排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "3d5dffe04e954a04a3a23df3f19fd0f5",
"author": "csdn.net",
"keywords": "位运算,哈希表,字符串,滑动窗口,哈希函数,滚动哈希"
"keywords": "位运算,哈希表,字符串,滑动窗口,哈希函数,滚动哈希",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "f8d4c9c5e53a4e308af15766723fd868",
"author": "csdn.net",
"keywords": "数组,数学,双指针"
"keywords": "数组,数学,双指针",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "c73ef4e33d884238a7f8e9d704408d9e",
"author": "csdn.net",
"keywords": "字符串,动态规划"
"keywords": "字符串,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "a26e1f31344140fbab1774f76a47193e",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "9d331fa3fb014da08b32050ccef6cb57",
"author": "csdn.net",
"keywords": "树,深度优先搜索,动态规划,二叉树"
"keywords": "树,深度优先搜索,动态规划,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "3716f183d0af4ef89d973d535bc4bcb8",
"author": "csdn.net",
"keywords": "广度优先搜索,哈希表,字符串,回溯"
"keywords": "广度优先搜索,哈希表,字符串,回溯",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "868233572dc84c47b8588aa085e46b65",
"author": "csdn.net",
"keywords": "广度优先搜索,哈希表,字符串"
"keywords": "广度优先搜索,哈希表,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "e337ab12306f468292112386f586615f",
"author": "csdn.net",
"keywords": "字符串,动态规划"
"keywords": "字符串,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "d9550848c8644b4c8aec6795c0e05f32",
"author": "csdn.net",
"keywords": "贪心,数组"
"keywords": "贪心,数组",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "58347641730142b0b6d4a50156cdf7fc",
"author": "csdn.net",
"keywords": "字典树,记忆化搜索,哈希表,字符串,动态规划,回溯"
"keywords": "字典树,记忆化搜索,哈希表,字符串,动态规划,回溯",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "5d0ce61f218a4f88b1bf30d2672c1872",
"author": "csdn.net",
"keywords": "几何,哈希表,数学"
"keywords": "几何,哈希表,数学",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "e3fc4f4e3bde4ff187d865b830fcb4df",
"author": "csdn.net",
"keywords": "数组,二分查找"
"keywords": "数组,二分查找",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "65d2cb1d967b46f09b68d428e0e51ef2",
"author": "csdn.net",
"keywords": "数组,桶排序,基数排序,排序"
"keywords": "数组,桶排序,基数排序,排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "b71f25a8bcde4801b81a00fd6be1d380",
"author": "csdn.net",
"keywords": "数组,动态规划,矩阵"
"keywords": "数组,动态规划,矩阵",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "ec3e59f7d600494180e6584fe82b5ce2",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "6b4aff8c6fef4c18ae919591114362ca",
"author": "csdn.net",
"keywords": "字典树,数组,字符串,回溯,矩阵"
"keywords": "字典树,数组,字符串,回溯,矩阵",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "641811da7e134206a7688959d7c62107",
"author": "csdn.net",
"keywords": "字符串,字符串匹配,哈希函数,滚动哈希"
"keywords": "字符串,字符串匹配,哈希函数,滚动哈希",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "35aededae12747cd833069bb653f73c6",
"author": "csdn.net",
"keywords": "树状数组,线段树,数组,分治,有序集合,扫描线,堆(优先队列)"
"keywords": "树状数组,线段树,数组,分治,有序集合,扫描线,堆(优先队列)",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "cda18ca422614f09b5903abd205f0310",
"author": "csdn.net",
"keywords": "栈,递归,数学,字符串"
"keywords": "栈,递归,数学,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "a7a6461d1d16435bb3e3a3c41151846e",
"author": "csdn.net",
"keywords": "递归,数学,动态规划"
"keywords": "递归,数学,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "08a9984f907642ab82562b6825d11de4",
"author": "csdn.net",
"keywords": "队列,数组,滑动窗口,单调队列,堆(优先队列)"
"keywords": "队列,数组,滑动窗口,单调队列,堆(优先队列)",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "76c0f96d4f6a442481925eb30c1bd079",
"author": "csdn.net",
"keywords": "递归,数学,字符串"
"keywords": "递归,数学,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "0eace60236ae48c98b4f3289166eaa40",
"author": "csdn.net",
"keywords": "数学,字符串,回溯"
"keywords": "数学,字符串,回溯",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "2ab425e26dd94bad91dd32f7dc7884b7",
"author": "csdn.net",
"keywords": "设计,双指针,数据流,排序,堆(优先队列)"
"keywords": "设计,双指针,数据流,排序,堆(优先队列)",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "d8c384b178944c5ba45bd1cb17f9927e",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,设计,字符串,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,设计,字符串,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "02180dc4ed1d4228a5428ffaebb367df",
"author": "csdn.net",
"keywords": "广度优先搜索,字符串,回溯"
"keywords": "广度优先搜索,字符串,回溯",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "bef97869141f49ddb448bd2b030c3ddc",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "906c31be650743cb9439f1fd1b9e596d",
"author": "csdn.net",
"keywords": "树状数组,线段树,数组,二分查找,分治,有序集合,归并排序"
"keywords": "树状数组,线段树,数组,二分查找,分治,有序集合,归并排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "8dd3243f9a7549c6b27e3381a52df3d9",
"author": "csdn.net",
"keywords": "栈,贪心,单调栈"
"keywords": "栈,贪心,单调栈",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "88d40224a81542f4819bfca909d91ef9",
"author": "csdn.net",
"keywords": "树状数组,线段树,数组,二分查找,分治,有序集合,归并排序"
"keywords": "树状数组,线段树,数组,二分查找,分治,有序集合,归并排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "bb7b4b7bacb14924afeb51700887e3ee",
"author": "csdn.net",
"keywords": "深度优先搜索,广度优先搜索,图,拓扑排序,记忆化搜索,动态规划"
"keywords": "深度优先搜索,广度优先搜索,图,拓扑排序,记忆化搜索,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "d28e13128f7b4dfd8a54b89b23cba61f",
"author": "csdn.net",
"keywords": "贪心,数组"
"keywords": "贪心,数组",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "4caea52122df439b895b005ba78c3be9",
"author": "csdn.net",
"keywords": "几何,数组,数学"
"keywords": "几何,数组,数学",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "2816b054ec174bcbbcb978a637b9fef2",
"author": "csdn.net",
"keywords": "字典树,数组,哈希表,字符串"
"keywords": "字典树,数组,哈希表,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "31d723fbab1348c7a4d401af35935327",
"author": "csdn.net",
"keywords": "设计,二分查找,有序集合"
"keywords": "设计,二分查找,有序集合",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "05e15bfc873841b9bb8f1d2fc70a532a",
"author": "csdn.net",
"keywords": "数组,二分查找,动态规划,排序"
"keywords": "数组,二分查找,动态规划,排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "50dee266fb4848cd8dc96aedf97b3ccf",
"author": "csdn.net",
"keywords": "数组,二分查找,动态规划,矩阵,有序集合"
"keywords": "数组,二分查找,动态规划,矩阵,有序集合",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "db1158dcd7384feb9692778d45fbab07",
"author": "csdn.net",
"keywords": "设计,数组,哈希表,数学,随机化"
"keywords": "设计,数组,哈希表,数学,随机化",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "b6ee5c4de3444ab79995fd11d74453e5",
"author": "csdn.net",
"keywords": "数组,扫描线"
"keywords": "数组,扫描线",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "c484f0e1a775406281353e95fa8a105b",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "957672d2d8c748ccb07ee1c232af6b41",
"author": "csdn.net",
"keywords": "字符串,动态规划"
"keywords": "字符串,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "9f8db2724d104eef9b86d4b3b4a5a44f",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "cddc0e94a1984dd4a980198707e090cc",
"author": "csdn.net",
"keywords": "树,深度优先搜索,动态规划,二叉树"
"keywords": "树,深度优先搜索,动态规划,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "1c00b22e362a444995d6bd2eff9d01be",
"author": "csdn.net",
"keywords": "广度优先搜索,哈希表,字符串,回溯"
"keywords": "广度优先搜索,哈希表,字符串,回溯",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "746c0258a8ff4e27b0b776ae1541504b",
"author": "csdn.net",
"keywords": "广度优先搜索,哈希表,字符串"
"keywords": "广度优先搜索,哈希表,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "c1730674847b45749f2e3d6dd06f43b8",
"author": "csdn.net",
"keywords": "字符串,动态规划"
"keywords": "字符串,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "6cd695f8b9c3466d95dadae80e51716b",
"author": "csdn.net",
"keywords": "贪心,数组"
"keywords": "贪心,数组",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "d28fda4f9c8149e18b8044fb166e824f",
"author": "csdn.net",
"keywords": "字典树,记忆化搜索,哈希表,字符串,动态规划,回溯"
"keywords": "字典树,记忆化搜索,哈希表,字符串,动态规划,回溯",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "c46851f1de3a4abfba2e35193034607a",
"author": "csdn.net",
"keywords": "几何,哈希表,数学"
"keywords": "几何,哈希表,数学",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "b5a91013625e4596b6d6c16eb2bd79a4",
"author": "csdn.net",
"keywords": "数组,二分查找"
"keywords": "数组,二分查找",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "937ab77a60ca4b3b9af54b3dab2a3764",
"author": "csdn.net",
"keywords": "数组,桶排序,基数排序,排序"
"keywords": "数组,桶排序,基数排序,排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "6c2501b9ae9e4a66b190108ea289548b",
"author": "csdn.net",
"keywords": "数组,动态规划,矩阵"
"keywords": "数组,动态规划,矩阵",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "6c5d72467a724708986ec06cd91422fa",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "7cc81fe3e8b549f09d8892808a9d1bd8",
"author": "csdn.net",
"keywords": "字典树,数组,字符串,回溯,矩阵"
"keywords": "字典树,数组,字符串,回溯,矩阵",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "e59ab886eb074d5885206b6030b67fab",
"author": "csdn.net",
"keywords": "字符串,字符串匹配,哈希函数,滚动哈希"
"keywords": "字符串,字符串匹配,哈希函数,滚动哈希",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "b6fe69f685d545d1a8497595765278fd",
"author": "csdn.net",
"keywords": "树状数组,线段树,数组,分治,有序集合,扫描线,堆(优先队列)"
"keywords": "树状数组,线段树,数组,分治,有序集合,扫描线,堆(优先队列)",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "d5be14108c2e4812ad3bc0c26e761af3",
"author": "csdn.net",
"keywords": "栈,递归,数学,字符串"
"keywords": "栈,递归,数学,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "9c03389fe307492986e80afea41f8a85",
"author": "csdn.net",
"keywords": "递归,数学,动态规划"
"keywords": "递归,数学,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "b9547e11047740c6a0299b7761da9aff",
"author": "csdn.net",
"keywords": "队列,数组,滑动窗口,单调队列,堆(优先队列)"
"keywords": "队列,数组,滑动窗口,单调队列,堆(优先队列)",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "333acbbfa64b462cb648201c2005798d",
"author": "csdn.net",
"keywords": "递归,数学,字符串"
"keywords": "递归,数学,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "901c10273a6a44c4979080819e4b4db6",
"author": "csdn.net",
"keywords": "数学,字符串,回溯"
"keywords": "数学,字符串,回溯",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "3bea4795f7f5492fbad68f8451c96dae",
"author": "csdn.net",
"keywords": "设计,双指针,数据流,排序,堆(优先队列)"
"keywords": "设计,双指针,数据流,排序,堆(优先队列)",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "9df6749433804794b84867682483afae",
"author": "csdn.net",
"keywords": "树,深度优先搜索,广度优先搜索,设计,字符串,二叉树"
"keywords": "树,深度优先搜索,广度优先搜索,设计,字符串,二叉树",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "267f71e554aa4cb9bf32e530bb2636a7",
"author": "csdn.net",
"keywords": "广度优先搜索,字符串,回溯"
"keywords": "广度优先搜索,字符串,回溯",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "5c38bd35f77545fc928bec3fdae5a92d",
"author": "csdn.net",
"keywords": "数组,动态规划"
"keywords": "数组,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "65672ae7af0b4e6782fad8f7053964c0",
"author": "csdn.net",
"keywords": "树状数组,线段树,数组,二分查找,分治,有序集合,归并排序"
"keywords": "树状数组,线段树,数组,二分查找,分治,有序集合,归并排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "1a5dc11810b04e0d8a83fdd16ba87e1c",
"author": "csdn.net",
"keywords": "栈,贪心,单调栈"
"keywords": "栈,贪心,单调栈",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "a9f7e57050c1400588485673f78712b3",
"author": "csdn.net",
"keywords": "树状数组,线段树,数组,二分查找,分治,有序集合,归并排序"
"keywords": "树状数组,线段树,数组,二分查找,分治,有序集合,归并排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "fd4e98b762304cfe85d93cfab28abd02",
"author": "csdn.net",
"keywords": "深度优先搜索,广度优先搜索,图,拓扑排序,记忆化搜索,动态规划"
"keywords": "深度优先搜索,广度优先搜索,图,拓扑排序,记忆化搜索,动态规划",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "2e6925b15adf47689c4ceb24a0948a7a",
"author": "csdn.net",
"keywords": "贪心,数组"
"keywords": "贪心,数组",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "ad9aad91b74c4ce889128bfdc4493b9f",
"author": "csdn.net",
"keywords": "几何,数组,数学"
"keywords": "几何,数组,数学",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "032b0d56c73f41eea42a882da7c19de7",
"author": "csdn.net",
"keywords": "字典树,数组,哈希表,字符串"
"keywords": "字典树,数组,哈希表,字符串",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "a10b9a0d46e441d3aecccdfcbedbf83b",
"author": "csdn.net",
"keywords": "设计,二分查找,有序集合"
"keywords": "设计,二分查找,有序集合",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "15a847964c244a82ad1fb736d864210a",
"author": "csdn.net",
"keywords": "数组,二分查找,动态规划,排序"
"keywords": "数组,二分查找,动态规划,排序",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "0ea29761a91f4dc5a8469011d23778d4",
"author": "csdn.net",
"keywords": "数组,二分查找,动态规划,矩阵,有序集合"
"keywords": "数组,二分查找,动态规划,矩阵,有序集合",
"notebook_enable": true
}
\ No newline at end of file
......@@ -3,5 +3,6 @@
"source": "solution.md",
"exercise_id": "e9e727954d394c91b956823f1d3af22d",
"author": "csdn.net",
"keywords": "设计,数组,哈希表,数学,随机化"
"keywords": "设计,数组,哈希表,数学,随机化",
"notebook_enable": true
}
\ No newline at end of file
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册