牛客742201245号
牛客742201245号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客742201245号的博客
全部文章
(共67篇)
题解 | #链表的回文结构#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) {} };*/ struct ListNode* reverseList(struct Lis...
2023-07-17
0
235
题解 | #链表分割#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) {} };*/ class Partition { public: ListNode* ...
2023-07-17
1
310
题解 | #数组类的拷贝构造函数#
#include<bits/stdc++.h> using namespace std; class Array{ private: int n;//数组大小 int *a;//数组 public: Array(){ cin>>n; a=new...
2023-05-14
0
228
题解 | #编写函数实现两数交换(指针方式)#
#include <iostream> using namespace std; // write your code here...... void myswap(int *m,int *n) { int temp = *m; *m = *n; *n =tem...
2023-05-14
0
117
题解 | #数组元素处理#
#include <iostream> using namespace std; void func(int* p, int n); int main() { int arr[6] = { 0 }; for (int i = 0; i < 6; i++) { ...
2023-05-14
0
116
题解 | #创建二维动态数组#
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; // write your code here...... int **arr = new int*...
2023-05-14
0
105
题解 | #创建动态数组#
#include <iostream> using namespace std; int main() { int n; cin >> n; // write your code here...... int *p = new i...
2023-05-14
0
98
题解 | #利用指针遍历数组#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int* ptr = arr; int len = sizeof(arr) / sizeof(int); ...
2023-05-14
0
96
题解 | #C++冒泡排序#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = 0...
2023-05-14
0
122
题解 | #数组元素反转#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = ...
2023-05-14
0
99
首页
上一页
1
2
3
4
5
6
7
下一页
末页