愿offer多多的小山竹很强大
愿offer多多的小山竹很强大
全部文章
分类
归档
标签
去牛客网
登录
/
注册
愿offer多多的小山竹很强大的博客
全部文章
(共37篇)
题解 | 大数乘法
class Solution { public: //两个字符串相加 string SumString(string& s, string& t) { //s -- 总 //t -- 新 string str; ...
2025-05-26
0
22
题解 | 链表相加(二)
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /...
2025-05-26
0
36
题解 | 孩子们的游戏(圆圈中最后剩下的数)
#include <climits> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @pa...
2025-05-17
0
25
题解 | #Fibonacci数列#
#include <climits> #include <iostream> using namespace std; int main() { int a = 0; int b = 1; int c = 1; int n = 0; cin&g...
2024-12-04
0
54
题解 | #数列#
#include <stdio.h> int main() { int arr[1000000] = { 0 }; arr[0] = 1; arr[1] = 2; for (int i = 2; i < 1000000; i++) { ...
2024-09-14
0
96
题解 | #单词缩写#
#include <iostream> #include<cstring> using namespace std; int main() { int n; cin>>n; while(n--) { string s...
2024-09-04
0
108
题解 | #打印日期#
#include <iostream> using namespace std; int GetMonthDay(int year,int month) { int arr[13] = {-1, 31, 28, 31, 30, 31, 30, ...
2024-07-27
0
168
题解 | #牛牛的Ackmann#
#include <stdio.h> int Ackmann(int m,int n) { if(m > 0&& n > 0) { return Ackmann(m-1, Ackmann(m, n-1)); }else i...
2024-06-30
0
176
题解 | #牛牛的排列数#
#include <stdio.h> int A(int n, int m) { if (n == m) { return 1; } return n * A(n-1,m); } int main() { int a, b; whi...
2024-06-27
0
157
题解 | #牛牛的digit#
#include <stdio.h> // void digit(int a, int b) // { // if (b == 0) // printf("%d", a % 10); // else // { // ...
2024-06-27
0
180
首页
上一页
1
2
3
4
下一页
末页