英俊的大熊猫在刷代码
英俊的大熊猫在刷代码
全部文章
分类
归档
标签
去牛客网
登录
/
注册
英俊的大熊猫在刷代码的博客
全部文章
(共14篇)
题解 | #数字在升序数组中出现的次数#
class Solution { public: //二分查找 int bisearch(vector<int>& da...
2022-09-30
0
212
题解 | #最小的K个数#
描述 给定一个长度为 n 的可能有重复值的数组,找出其中不去重的最小的 k 个数。例如数组元素是4,5,1,6,2,7,3,8这8个数字,则最小的4个数字是1,2,3,4(任意顺序皆可)。 数...
2022-09-30
1
306
题解 | #数组中重复的数字#
描述 在一个长度为n的数组里的所有数字都在0到n-1的范围内。 数组中某些数字是重复的,但不知道有几个数字是重复的。也不知道每个数字重复几次。请找出数组中任意一个重复的数字。 例如,如果输入长度为7的数组[2,3,1,0,2,5,3],那么对应的输出是2或者3。存在不合法的输入的话输出-1...
2022-09-30
0
280
题解 | #从尾到头打印链表#
class Solution { public: vector<int> printListFromTailToHead(ListNode* head) { &nbs...
2022-09-29
0
240
题解 | #C++选择排序#
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { int&...
C++
2022-09-29
0
249
题解 | #获取字符串长度#
#include <iostream> using namespace std; int main() { char str[100] = { 0...
C++
2022-09-29
0
184
题解 | #字符串变形#
class Solution { public: string trans(string s, int n) { &nbs...
C++
2022-09-29
0
233
题解 | #用两个栈实现队列#
class Solution { public: void push(int node) { ...
C++
2022-09-28
0
232
题解 | #个人所得税计算程序#
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <iomanip>...
C++
2022-09-23
1
435
题解 | #统计字符串中各类型字符的个数#
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { int&...
C++
2022-09-23
0
307
首页
上一页
1
2
下一页
末页