Bigdata
입력 코드 #include int q[451]; int main() { int head,tail,i,j,n,m,cnt=0,x; scanf("%d%d",&n,&m); for(i=1;i
입력 코드 #include int findMax(int queue[], int N, int front, int rear){ int M = queue[front], index = 0; for (int i = front + 1; i
입력 코드 #include #include #include int main() { int n; scanf("%d", &n); int queue[2000000]; int front = 0, back = 0; char command[6]; for (int i = 0; i
입력 코드 #include #include #include typedef struct deque{ int num; struct deque* next; struct deque* parent; }deq; deq* front=NULL; deq* back=NULL; int main(){ int N,X,size=0; deq* a; deq* del; char sym[11]; scanf("%d",&N); while(N--){ scanf("%s",sym); if(!strcmp(sym,"push_front")){ scanf("%d",&X); a=(deq*)malloc(sizeof(deq)); a->num=X; a->parent=NULL;a->next=NULL; if(front!=NULL){ front->parent=a;..