跪求要一个offer
跪求要一个offer
全部文章
题解
归档
标签
去牛客网
登录
/
注册
跪求要一个offer的博客
全部文章
/ 题解
(共155篇)
题解 | #和为S的两个数字#
public: vector<int> FindNumbersWithSum(vector<int> array,int sum) { //使用双指针算法 int left,right; int i,j,k; ...
C++
2021-12-29
0
417
题解 | #设计立方体类#
using namespace std; class Cube { private: int length; int width; int height; public: // Cube(int length,...
C++
2021-12-29
0
446
题解 | #构造函数#
#include <string> using namespace std; // Person类 class Person { public: string name; // 姓名 int age; // 年龄 ...
C++
2021-12-27
0
453
题解 | #函数实现计算一个数的阶乘#
using namespace std; long long factorial(int n); int main() { int n; cin >> n; cout << factorial(n) << endl; re...
C++
2021-12-27
0
307
题解 | #创建动态数组#
#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
355
题解 | #替换空格#
public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @return string字符串 */ string repl...
C++
2021-12-26
0
323
题解 | #结构体简单使用#
#include <string> #include<cstdio> using namespace std; struct student { string name; int age; double height; // write yo...
C++
2021-12-25
0
376
题解 | #整数中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
245
题解 | #左旋转字符串#
public: string LeftRotateString(string str, int n) { int test; if(n>str.length()){ if(str.length()==0){ ...
C++
2021-12-25
0
344
题解 | #矩形覆盖#
public: int rectCover(int number) { if(number==0){ return 0; } else if(number==1){ return 1; ...
C++
2021-12-24
0
286
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页