牛客600608245号
牛客600608245号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客600608245号的博客
全部文章
(共14篇)
题解 | #成绩排序#
#include <iostream> #include <algorithm> #include <stdio.h> using namespace std; const int MaxSize = 500; struct Student { cha...
2023-03-02
0
245
题解 | #判断是不是平衡二叉树#
#include <algorithm> #include <cstddef> #include <cstdlib> class Solution { public: bool IsBalanced_Solution(TreeNode* pRoot) { ...
2023-03-01
0
230
题解 | #数组中的逆序对#
class Solution { public: int InversePairs(vector<int> data) { long long num = 0; //暴力解法,注意运算中num的会超出表示范围,用long long较好 for(i...
2023-02-28
0
206
题解 | #二维数组中的查找#
class Solution { public: bool Find(int target, vector<vector<int> > array) { bool flag = false; for(int i = 0;i<ar...
2023-02-28
0
235
首页
上一页
1
2
下一页
末页