- 博客(2)
- 收藏
- 关注
原创 面试题55 - I. 二叉树的深度
/** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ //递归 int maxDepth(struct TreeNode* root){ //...
2020-02-19 18:03:54
149
原创 面试题17. 打印从1到最大的n位数
/** * Note: The returned array must be malloced, assume caller calls free(). */ int* printNumbers(int n, int* returnSize) { int size = pow(10.0, n) - 1; int *result = (int *)malloc(sizeof(i...
2020-02-19 17:16:40
153
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人