跪求要一个offer
跪求要一个offer
全部文章
分类
题解(178)
归档
标签
去牛客网
登录
/
注册
跪求要一个offer的博客
TA的专栏
12篇文章
0人订阅
算法和编程题解
12篇文章
177人学习
全部文章
(共168篇)
题解 | #数组元素处理#
using namespace std; void func(int* p, int n); int main() { int arr[6] = { 0 }; for (int i = 0; i < 6; i++) { cin >> arr[i...
C++
2021-12-30
0
288
题解 | #数值的整数次方#
public: double Power(double base, int exponent) { double result=1; int i; //暴力法 if(exponent>0){ for...
C++
2021-12-30
0
223
题解 | #二叉树的深度#
struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class Sol...
C++
2021-12-30
0
223
题解 | #和为S的两个数字#
public: vector<int> FindNumbersWithSum(vector<int> array,int sum) { //使用双指针算法 int left,right; int i,j,k; ...
C++
2021-12-29
0
294
题解 | #设计立方体类#
using namespace std; class Cube { private: int length; int width; int height; public: // Cube(int length,...
C++
2021-12-29
0
354
题解 | #构造函数#
#include <string> using namespace std; // Person类 class Person { public: string name; // 姓名 int age; // 年龄 ...
C++
2021-12-27
0
362
题解 | #函数实现计算一个数的阶乘#
using namespace std; long long factorial(int n); int main() { int n; cin >> n; cout << factorial(n) << endl; re...
C++
2021-12-27
0
211
题解 | #创建动态数组#
#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
265
题解 | #替换空格#
public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @return string字符串 */ string repl...
C++
2021-12-26
0
238
题解 | #结构体简单使用#
#include <string> #include<cstdio> using namespace std; struct student { string name; int age; double height; // write yo...
C++
2021-12-25
0
299
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页