Skip to content

[Data Structure] 스택 구현 - #165

Merged
sh0723 merged 1 commit into
mainfrom
implement-stack
Jul 18, 2026
Merged

[Data Structure] 스택 구현#165
sh0723 merged 1 commit into
mainfrom
implement-stack

Conversation

@sh0723

@sh0723 sh0723 commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • IntStack 클래스로 기본 스택 동작을 직접 구현했습니다.
  • 동적 배열 기반 저장소를 사용해 push, pop, top, reserve, clear를 지원합니다.
  • 파일 내 assert 기반 테스트로 정상 동작과 빈 스택 예외 케이스를 검증합니다.

Test

  • /opt/homebrew/bin/g++-15 -std=c++17 -Wall -Wextra -pedantic src/data_structure_implement/array/stack/implement_stack.cpp -o /tmp/implement_stack_check
  • /tmp/implement_stack_checkALL TESTS PASSED

Notes

  • macOS 기본 clang 계열 c++bits/stdc++.h를 찾지 못해 GNU g++-15로 로컬 검증했습니다.
  • 컴파일 시 멤버 초기화 순서 경고가 있습니다.

Closes #164

@sh0723
sh0723 merged commit 2842ef4 into main Jul 18, 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