![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
Whalien 52.
这个作者很懒,什么都没留下…
展开
-
2022.7.9 层序遍历模板
637.二叉树的层平均值515.在每个树行中找最大值原创 2022-07-09 17:58:08 · 187 阅读 · 1 评论 -
2022.5.11 力扣783.二叉搜索树节点最小距离
783.二叉搜索树节点最小距离int size;//int a[101];void inorder(struct TreeNode* root,int* a){ if(root==NULL){ return; } inorder(root->left,a); a[size++]=root->val; inorder(root->right,a);}int minDiffInBST(struct TreeNode* root原创 2022-05-11 23:33:34 · 99 阅读 · 0 评论 -
2022.3.14 链表-2.两数相加
2.两数相加class Solution { public ListNode addTwoNumbers(ListNode l1, ListNode l2) { ListNode xList = new ListNode(0); //创建首节点 ListNode newList= xList; //声名一个变量用来在移动过程中指向当前节点 int curr = 0; while(l1 != null || l2 != null){原创 2022-03-14 22:43:23 · 325 阅读 · 0 评论