Merged
Conversation
bona1122
approved these changes
Jan 15, 2025
Collaborator
bona1122
left a comment
There was a problem hiding this comment.
올바른괄호 같은 짝을 찾는 문제에서 여는 괄호가 나오면 바로 닫는 괄호를 넣어주는 방법도 가능하군요, 저는 map을 활용해서 짝을 명시했는데, 이렇게 하니까 좀 더 이해하기 쉬운 코드 같습니다. 다른 코드들도 많이 배우고 갑니다 :)
| @@ -0,0 +1,3 @@ | |||
| function solution(my_string) { | |||
| return my_string.split('').reverse().join(''); | |||
Collaborator
There was a problem hiding this comment.
문자열도 이터러블해서 스프레드 연산자로 쓰면 더 가독성 있을 것 같습니다!
[...my_string].reverse().join('');
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.
배열
md 파일로 추가했습니다!
📌 푼 문제
📝 간단한 풀이 과정
문자열 뒤집기
컨트롤 제트
영어가 싫어요
문자열 계산하기
숫자 부호 숫자 부호 숫자 부호순서이기 때문에 두칸씩 이동했습니다.크레인 인형뽑기 게임
올바른 괄호
다트게임
했습니다.