Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[week 6] 주간 결산_이도윤 #19

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

[week 6] 주간 결산_이도윤 #19

wants to merge 22 commits into from

Conversation

doyn511
Copy link
Contributor

@doyn511 doyn511 commented Nov 19, 2023

✨ 이번주 문제 풀이

[Lv 1]

[Lv 2]


📚 이번주 코테 공부 중 느낀점 / 배운 점

  • 이번주 문제를 풀면서 stack 개념을 처음 써본 것 같아요..!
  • 문제는 풀더라도 효율성 검사 통과하기 어렵네요....

stack

  • stack 내부 데이터는 top을 통해서만 접근 가능 (top: 가장 최근에 stack에 들어온 데이터)
  • stack에 데이터를 넣을 땐 push( )
  • stack에서 데이터를 꺼낼 땐 pop( )
  • 즉 stack은 LIFO (Last In First Out)

queue

  • stack과는 달리 삽입과 삭제가 다른 방향에서 이루어짐
  • 삭제 연산(Dequeue)이 수행되는 곳: front
  • 삽입 연산(Enqueue)이 수행되는 곳: rear
  • 가장 먼저 삽입된 데이터가 가장 먼저 삭제됨 FIFO(First In First Out)

@doyn511 doyn511 self-assigned this Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant