[실전 알고리즘] 0x07강 - 덱

Deque을 Linked List로 구현하기


그냥 isRight = true 상태로 놓고 역순으로 하고싶다면 !isRight로 놓아서 뒷부분을 front인 척 한다..

꿀 팁..

Deque에 값 삽입

Untitled