题目
2583. 二叉树中的第 K 大层和
分析
这道题其实考察的是二叉树的层序遍历,下面我介绍一个二叉树的层序遍历模版: public List<List<Integer>> levelOrder(TreeNode root) {// 记录最终的结果List<List<Integer>> res n…
比赛链接:ABC340
话不多说,看题。
Problem A:
签到。
#include <bits/stdc.h>
using namespace std;
int main(){int a,b,d;cin>>a>>b>>d;for(int ia;i<b;id)cout<<i<<endl;return 0;
}
Problem B:
还是签到题。一个v…