Merged
Conversation
Moonjonghoo
approved these changes
Jan 14, 2025
Collaborator
Moonjonghoo
left a comment
There was a problem hiding this comment.
전체적으로 간결하게 코드를 짜주셔서 보기편했습니다.
한주 고생하셨습니다.
oh-chaeyeon/2주차_스택/Hate_English.js
Outdated
Collaborator
There was a problem hiding this comment.
정규식을활용하여 코드가 직관적이라 좋았습니다!
JustDevRae
approved these changes
Jan 14, 2025
Collaborator
JustDevRae
left a comment
There was a problem hiding this comment.
수고 많으셨습니다! 자세한 설명 덕분에 이전에 풀지 못했던 문제들도 이해하면서 리뷰할 수 있었습니다!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[배열]
스택의 기본 개념 이해하기!!!
가장 많이 사용하는 메서드
push(): 스택에 값을 추가pop(): 스택에서 값을 제거peek(): 스택의 최상단 값을 확인(배열의 마지막 요소 확인)+그리고 챗gpt 이용해서 스택 관련된 문제들 풀어보면서 공부함.
📌 푼 문제
📝 간단한 풀이 과정
문자열 뒤집기
컨트롤 제트
영어가 싫어요
→ g : 전체 검색 (global match) → 일치하는 모든 항목을 찾음
→ i : 대소문자 구분 없음 (case-insensitive match)
문자열에서 단어 치환하기
문자열 계산하기
크레인 인형뽑기 게임
올바른 괄호
다트 게임
*→ 2배, # → 현재 점수를 음수로 만듦. (옵션은 둘 중 하나만 존재하거나 둘 다 없을수 있음)1S2D3T → 37 풀이: 1 * 2 + 22 * 2 + 333
1D2S0T → 3 풀이: 1 + 2 + 000
1S2T3S → 23 풀이: 1* 2 * 2 + 222 * 2 + 3
1D#2S*3S → 5 풀이: 1 * (-1) * 2 + 2 * 2 + 3
괄호 회전하기
주식가격
떨어지지 않다의 의미 = 현재 시점의 가격이 이후 시점의 가격보다 작지 않거나 같음.택배상자