跪求要一个offer
跪求要一个offer
全部文章
分类
题解(178)
归档
标签
去牛客网
登录
/
注册
跪求要一个offer的博客
TA的专栏
12篇文章
0人订阅
算法和编程题解
12篇文章
275人学习
全部文章
(共183篇)
题解 | #构造函数#
#include <string> using namespace std; // Person类 class Person { public: string name; // 姓名 int age; // 年龄 ...
C++
2021-12-27
0
460
题解 | #函数实现计算一个数的阶乘#
using namespace std; long long factorial(int n); int main() { int n; cin >> n; cout << factorial(n) << endl; re...
C++
2021-12-27
0
312
题解 | #创建动态数组#
#include<vector> using namespace std; int main() { int n; cin >> n; vector<int> result; int i; for(i=n;i<=2...
C++
2021-12-26
0
362
题解 | #替换空格#
public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @return string字符串 */ string repl...
C++
2021-12-26
0
329
题解 | #结构体简单使用#
#include <string> #include<cstdio> using namespace std; struct student { string name; int age; double height; // write yo...
C++
2021-12-25
0
384
题解 | #整数中1出现的次数(从1到n整数中1出现的次数)#
public: int NumberOf1Between1AndN_Solution(int n) { int i; int sum=0; for(i=1;i<=n;i+=1){ sum+=judge(i); ...
C++
2021-12-25
0
252
题解 | #左旋转字符串#
public: string LeftRotateString(string str, int n) { int test; if(n>str.length()){ if(str.length()==0){ ...
C++
2021-12-25
0
350
题解 | #矩形覆盖#
public: int rectCover(int number) { if(number==0){ return 0; } else if(number==1){ return 1; ...
C++
2021-12-24
0
296
题解 | #计算公司年销售额#
using namespace std; int main() { int arr[4][3] = { 22,66,44, 77,33,88, 25,45,65, 11,66,99 // write your...
C++
2021-12-23
0
429
题解 | #获取数组最值#
using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = 0; i < len; i++) { ...
C++
2021-12-23
0
269
首页
上一页
2
3
4
5
6
7
8
9
10
11
下一页
末页