首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
1576684866
2024年3月23日 15:00
击鼓传花 题解:
P1018
回复 0
|
赞 0
|
浏览 1.2k
#include <cstdio> using namespace std; #include <string.h> #include <iostream> #include <stdlib.h> typedef struct node { int number; struct node* next; }*LinkList,Node; //遍历链表 void Print(LinkList& L) {  ...
光明守护神
2024年3月10日 15:01
击鼓传花 题解:图解题目意思
P1018
回复 2
|
赞 3
|
浏览 1.7k
1 2 3 4 5 1 2 3 4 5 1 2 4 5 1 2 4 5 1 2 4 1 2 4 1 4 1 4 4 用list写一个循环链表 #include <iostream> #include <list> using namespace std; int main() { { int n; cin >> n; list<int>l; list<int>::iterator it; for (int ...
Cookie‘s AE86
2024年3月16日 09:48
击鼓传花 题解:c++自定义无头节点的循环链表实现
P1018
回复 0
|
赞 0
|
浏览 1.2k
#include<bits/stdc++.h> using namespace std; typedef struct node{ int number; struct node* next; }LiNode, *LiList; int main(){ int n; cin >> n; LiList L = (LiList) malloc(sizeof(LiNode)); L->number = 1; L->next = L; //不带头节点的循环单...
damowanghwj
2024年3月11日 17:01
击鼓传花 题解:队列实现
P1018
回复 0
|
赞 0
|
浏览 1.2k
#include <iostream> #include<cstdio> #include<vector> #include<algorithm> #include<cstring> #include<queue> using namespace std; int main(){ int n ; cin >> n; if(n == 1){ cout << 1 <<endl; return 0; ...
promising
2024年3月10日 16:42
击鼓传花 题解:
P1018
回复 0
|
赞 1
|
浏览 1.5k
#include<stdio.h> #include<stdlib.h> int main() { typedef struct LNode { int data; struct LNode *next; }LNode; int n; &nb...
熹微
2024年3月9日 16:35
击鼓传花 题解:
P1018
回复 1
|
赞 0
|
浏览 1.3k
C语言 循环数组 模拟循环链表 大家可以参考参考 #include<stdio.h> int Fac(int x,int a[],int n){ for(int i = 0;i<=n;i++) if(x == a[i]) return 1; return 0; } int main(){ int n,cu...
1935569240
2024年3月5日 20:25
击鼓传花 题解:模拟过程即可
P1018
回复 0
|
赞 2
|
浏览 1.8k
#include<iostream> #include<algorithm> #include<string> using namespace std; struct node { int data; struct node * next; }; struct node* create(int n) { struct node *head=NULL,*q; for (int ...
zhangan
2024年3月9日 16:16
击鼓传花 题解:
P1018
回复 0
|
赞 1
|
浏览 1.0k
#include <stdio.h> #include <stdlib.h> typedef struct lnode { // 定义结构体 int data; struct lnode* next; } lnode, * sqlist; lnode* creatnode(int data) { // 创建链表节点 sqlist L = (lnode*)malloc(sizeof(lnode)); if (L == NULL) {...
cideyitanjiu
2024年3月3日 15:31
击鼓传花 题解:使用动态数组vector,以及迭代器iterator
P1018
回复 0
|
赞 0
|
浏览 1.1k
使用动态数组vector,以及迭代器iterator,用arr.erase(it) 删除数组成员,简单高效快捷 #include<stdio.h> #include<vector> using namespace std; int main() { int N; scanf("%d", &N); vector<int> arr; for(int i =...
jenosa
2024年3月1日 20:39
击鼓传花 题解:主要是模拟过程 没有技巧版
P1018
回复 0
|
赞 1
|
浏览 1.9k
#include<iostream> using namespace std; int main(){ struct Node { int n; struct Node * next; }; int N; cin>>N; //构建循环链表 struct Node...
1
2
3
4
5
题目
击鼓传花
题解数量
50
发布题解
在线答疑
热门题解
1
击鼓传花 题解:循环链表解决
2
击鼓传花 题解:尾插法循环单链表(纯C)
3
击鼓传花 题解:vector手撕约瑟夫
4
击鼓传花 题解:谁家的古风小孩可爱捏
5
击鼓传花 题解:不使用循环队列,用数组循环的方式来实现
6
击鼓传花 题解:链表模拟
7
击鼓传花 题解:(C语言、用数组解决)
8
用vector每次用erase删除表演的小朋友
9
vector究极无敌简洁版
10
击鼓传花(C++) 题解: