[최재영] 8_3#70
Merged
Merged
Conversation
wj2kim
reviewed
Aug 19, 2021
|
|
||
| function solution(s){ | ||
| let answer = "NO" | ||
| let lowerCase = s.toLowerCase() |
Contributor
There was a problem hiding this comment.
해당 변수는 상수로 쓰이기 땜에 const로 선언해주시는게 좋을것 같습니다!
Contributor
Author
There was a problem hiding this comment.
넵 ! 수정했습니다 피드백감사합니다 👍
wj2kim
reviewed
Aug 19, 2021
| let answer = '' | ||
|
|
||
| for(let x of arr){ | ||
| if(!isNaN(x)) answer+=x |
let키워드를 const키워드로 바꿨습니다 !
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.
✅ 3-1 회문 문자열
문제 접근 방법아쉬웠던 점배운점✅ 3-2 유효한 팰린드롬
문제 접근 방법아쉬웠던 점배운점✅ 3-3 숫자만 추출
문제 접근 방법isNaN를 사용하기parseint를 사용하기해결과정✅ 3-4 가장 짧은 문자거리
문제 접근 방법아쉬웠던 점해결과정answer[i]= Math.min(answer[i],cnt)역 방향 최소 거리값 구하기✅ 3-5 문자열 압축
문제 접근 방법아쉬웠던 점해결과정if(cnt>1) answer.push(String(cnt))로 인해서 1을 처리해주었다 !