Skip to content

[Data Structure] 최소 힙 V2 구현 - #183

Merged
sh0723 merged 1 commit into
mainfrom
implement-minhead-v2
Jul 22, 2026
Merged

[Data Structure] 최소 힙 V2 구현#183
sh0723 merged 1 commit into
mainfrom
implement-minhead-v2

Conversation

@sh0723

@sh0723 sh0723 commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • MinHeap V2 구현을 추가했습니다.
  • 동적 배열을 직접 관리하고, reserve로 capacity를 확장합니다.
  • push, pop, topsiftUp, siftDown을 통해 최소 힙 조건을 유지합니다.
  • 파일 내 assert 기반 테스트로 빈 힙, 중복값, 음수, 정렬 순서, 재사용 케이스를 검증합니다.

Test

  • c++ -std=c++17 -Wall -Wextra -pedantic src/data_structure_implement/priority_structure/heap/minHeap_V2.cpp -o /tmp/min_heap_v2_check
  • /tmp/min_heap_v2_checkALL TESTS PASSED

Closes #182

@sh0723
sh0723 merged commit 8844394 into main Jul 22, 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] 최소 힙 V2 구현

1 participant