上一页 1 ··· 239 240 241 242 243 244 245 246 247 ··· 400 下一页
摘要: Given a binary tree, return all root-to-leaf paths. Note: A leaf is a node with no children. Example: Input: 1 / \ 2 3 \ 5 Output: ["1->2->5", "1->3"] 阅读全文
posted @ 2019-04-22 13:09 ChuckLu 阅读(155) 评论(0) 推荐(0)
摘要: 传递多个参数 https://stackoverflow.com/questions/28481189/exec-sp-executesql-with-multiple-parameters Here is a simple example: EXEC sp_executesql @sql, N'@ 阅读全文
posted @ 2019-04-22 10:02 ChuckLu 阅读(522) 评论(0) 推荐(0)
摘要: Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia 阅读全文
posted @ 2019-04-19 13:14 ChuckLu 阅读(259) 评论(0) 推荐(0)
摘要: Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 Trivia: This problem was inspired by this original t 阅读全文
posted @ 2019-04-18 13:09 ChuckLu 阅读(146) 评论(0) 推荐(0)
摘要: 打印代码 阅读全文
posted @ 2019-04-18 13:07 ChuckLu 阅读(299) 评论(0) 推荐(0)
摘要: 安装了vs2019之后,发现有的项目中引用的其他项目的源码,但是无法识别了。 最后发现是因为project guid是大写导致的。 https://stackoverflow.com/questions/36204515/vs-project-references-broken-on-case-se 阅读全文
posted @ 2019-04-12 13:58 ChuckLu 阅读(791) 评论(0) 推荐(0)
摘要: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. N 阅读全文
posted @ 2019-04-12 13:00 ChuckLu 阅读(169) 评论(0) 推荐(0)
摘要: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as: a binary tree in which the dep 阅读全文
posted @ 2019-04-11 13:18 ChuckLu 阅读(136) 评论(0) 推荐(0)
摘要: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l 阅读全文
posted @ 2019-04-10 23:43 ChuckLu 阅读(151) 评论(0) 推荐(0)
摘要: https://forums.asp.net/t/1139381.aspx?what+are+these+special+tags+and+ 答案1 Those tags can be hard to search for since the are generally discarded by s 阅读全文
posted @ 2019-04-10 17:17 ChuckLu 阅读(248) 评论(0) 推荐(0)
上一页 1 ··· 239 240 241 242 243 244 245 246 247 ··· 400 下一页