摘要:
根据一棵树的前序遍历与中序遍历构造二叉树。 注意: 你可以假设树中没有重复的元素。 例如,给出 返回如下的二叉树: 来源:力扣(LeetCode) 链接:https://leetcode cn.com/problems/construct binary tree from preorder and 阅读全文
摘要:
给定两个非空二叉树 s 和 t,检验 s 中是否包含和 t 具有相同结构和节点值的子树。s 的一个子树包括 s 的一个节点和这个节点的所有子孙。s 也可以看做它自身的一棵子树。 来源:力扣(LeetCode) 链接:https://leetcode cn.com/problems/subtree o 阅读全文
摘要:
在编写跨平台的 C/C++ 时,需要判断平台的操作系统类型。通过预编译宏,区分各平台。 参考 "How to detect reliably Mac OS X, iOS, Linux, Windows in C preprocessor? [duplicate]" 注: 在 win32 和 win6 阅读全文
摘要:
LeetCode 第 166 场周赛 "1281.subtract the product and sum of digits of an integer" "1282.group the people given the group size they belong to" "1283.find 阅读全文