Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 메모리영역
- 1152
- 차이
- boj
- class area
- 해시맵
- java
- list
- 링크드해시맵
- 데큐
- 어레이리스트
- array
- 자바
- 정렬
- Stack
- Garbage Collecter
- 자바 메모리 영역
- 단어의개수
- 별찍기
- 백준 알고리즘
- 백준
- 단계별로
- 배열
- 백준알고리즘
- 해시테이블
- arraylist
- 풀어보기
- 또뭐테그해야하냐
- 알고리즘
- hashmpa
Archives
- Today
- Total
장벚꽃박튤립
덱 Deque
- Deque (덱 혹은 데큐)라 불리며 큐의 응용 - 큐의 양쪽에서 삽입과 추출을 수행할 수 있는 자료구조 - 자바에서 덱은 인터페이스로 구현되어 있다. (ArrayDeque, LinkedBlockingDeque, ConcurrentLinkedDeque, LinkedList 클래스) - Stack에서의 push, pop과 Queue에서의 offer, poll 모두 사용 가능 1 2 3 4 5 6 7 8 // 덱 선언 Deque deque = new ArrayDeque(); deque.offer(1); // 1 deque.push(2); // 1 2 deque.offerLast(3); // 3 1 2 while(!deque.isEmpty()) System.out.println(deque.pollLast(..
IT일반/자료구조
2019. 6. 13. 20:56