https://oj.leetcode.com/problems/convert-sorted-list-to-binary-search-tree/Given a singly linked list where elements are sorted in ascending order, co...
分类:
其他好文 时间:
2015-03-03 14:57:08
阅读次数:
166
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.
Calling next() will return the next smallest number in the BST.
Note: next()...
分类:
其他好文 时间:
2015-03-03 01:12:50
阅读次数:
227
https://oj.leetcode.com/problems/symmetric-tree/Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For exam...
分类:
其他好文 时间:
2015-03-02 20:45:29
阅读次数:
203
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the cor...
分类:
其他好文 时间:
2015-03-02 19:10:38
阅读次数:
135
命名规则交叉编译工具链的命名规则为:arch [-vendor] [-os] [-(gnu)eabi]arch– 体系架构,如ARM,MIPSvendor– 工具链提供商os– 目标操作系统eabi– 嵌入式应用二进制接口(Embedded Application Binary Interface)...
分类:
其他好文 时间:
2015-03-02 18:59:11
阅读次数:
184
1 二进制IO(Binary IO)在前一篇我们了解了逐字符读写和逐行读写函数。如果我们在读写二进制文件,希望以此读写整个文件内容,这两个函数虽然可以实现,但是明显会很麻烦且多次循环明显效率很低。为了应对这种场景,标准IO库提供了fread和fwrite函数。函数声明:#include size_t...
分类:
其他好文 时间:
2015-03-02 18:42:40
阅读次数:
183
leetcode 104.Maximum Depth of Binary Tree
分类:
其他好文 时间:
2015-03-02 18:31:30
阅读次数:
114
题目1.same treeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value.2.sym...
分类:
其他好文 时间:
2015-03-02 16:51:53
阅读次数:
135
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the cor...
分类:
其他好文 时间:
2015-03-02 13:16:06
阅读次数:
112
1 二进制IO(Binary IO)在前一篇我们了解了逐字符读写和逐行读写函数。如果我们在读写二进制文件,希望以此读写整个文件内容,这两个函数虽然可以实现,但是明显会很麻烦且多次循环明显效率很低。为了应对这种场景,标准IO库提供了fread和fwrite函数。函数声明:#include size_t...
分类:
其他好文 时间:
2015-03-02 10:57:00
阅读次数:
220