This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import java.util.*; | |
| class Solution { | |
| public int solution(int n, int[] lost, int[] reserve) { | |
| LinkedList<Integer> llLost = new LinkedList<>(); | |
| LinkedList<Integer> llReserve = new LinkedList<>(); | |
| Arrays.sort(lost); | |
| Arrays.sort(reserve); | |
| for (int i : lost) llLost.add(i); | |
| for (int i : reserve) llReserve.add(i); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // 1330번 두 수 비교하기 | |
| #include <stdio.h> | |
| int main() | |
| { | |
| int a,b; | |
| scanf("%d %d", &a, &b); | |
| if(a>b) | |
| printf(">"); | |
| else if(a<b) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import java.util.*; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| int[] num = new int[20000001]; | |
| int n = sc.nextInt(); | |
| for(int i=0; i<n; i++) num[sc.nextInt()+10000000]++; | |
| int m = sc.nextInt(); | |
| for(int i=0; i<m; i++) System.out.print(num[sc.nextInt()+10000000]+" "); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import java.util.*; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| int n = sc.nextInt(); | |
| int[] a = new int[n]; | |
| for(int i=0; i<n; i++) a[i] = sc.nextInt(); | |
| Arrays.sort(a); | |
| int m = sc.nextInt(); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <stdio.h> | |
| #define SIZE 5 /* 큐의 크기 */ | |
| int menu(void); | |
| void view_queue(), insert_menu(), delete_menu(); | |
| int insertQ(char obj); | |
| char deleteQ(); | |
| int isempty(); | |
| int isfull(); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <stdio.h> | |
| #include <stdlib.h> | |
| struct _node { | |
| char data; | |
| struct _node *link; | |
| }; | |
| typedef struct _node node; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <stdio.h> | |
| #include <stdlib.h> | |
| /* 노드 정의 */ | |
| struct _node { | |
| int data; | |
| struct _node *link; | |
| }; | |
| typedef struct _node node; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <stdio.h> | |
| #include <stdlib.h> | |
| // 노드의 정의 | |
| struct _node { | |
| int data; | |
| struct _node *link; | |
| }; | |
| typedef struct _node node; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <stdio.h> | |
| #include <stdlib.h> | |
| // 노드 정의 | |
| struct _node { | |
| int data; // data | |
| struct _node *link; // link | |
| }; | |
| typedef struct _node node; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <stdio.h> | |
| #define SIZE 10 | |
| char stack[SIZE]; // 스택 생성 | |
| int top = -1; // 배열의 맨 위 인덱스(top)를 가리킬 변수 | |
| void view_stack(), push_menu(), pop_menu(); | |
| void topexam_menu(), isempty_menu(), isfull_menu(); | |
| void push(char obj); // 삽입(푸시) | |
| char pop(); // 삭제(팝) |