Skip to content

[Data Structure] 덱 구현 - #169

Merged
sh0723 merged 1 commit into
mainfrom
implement-deque
Jul 19, 2026
Merged

[Data Structure] 덱 구현#169
sh0723 merged 1 commit into
mainfrom
implement-deque

Conversation

@sh0723

@sh0723 sh0723 commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • IntDeque 클래스로 기본 덱 동작을 직접 구현했습니다.
  • 순환 인덱스를 사용해 양쪽 삽입/삭제와 front, back, reserve, clear를 지원합니다.
  • 용량 확장 시 현재 덱의 논리적 순서를 유지하도록 재배치합니다.
  • 파일 내 assert 기반 테스트로 정상 동작과 빈 덱 예외 케이스를 검증합니다.

Test

  • c++ -std=c++17 -Wall -Wextra -pedantic src/data_structure_implement/array/deque/deque.cpp -o /tmp/deque_check
  • /tmp/deque_checkALL TESTS PASSED

Closes #168

@sh0723
sh0723 merged commit acfbf0b into main Jul 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Data Structure] 덱 구현

1 participant