-
Notifications
You must be signed in to change notification settings - Fork 3
week11 week12 week13 week14 풀었습니다.
#65
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
85fcccf
solve: 배열의 평균값
sgoldenbird 9b4d180
solve: 배열 뒤집기
sgoldenbird 92029ca
solve: 제곱수 판별하기
sgoldenbird 23a7d05
solve: 짝수 홀수 개수
sgoldenbird 9403f4e
solve: 특정 문자 제거하기
sgoldenbird a87ca87
solve: 뒤집힌 문자열
sgoldenbird bcc023d
solve: 문자 반복 출력하기
sgoldenbird f6d42d9
solve: 편지
sgoldenbird File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| function solution(my_string) { | ||
| let reversed = ''; | ||
| for (const char of my_string) { | ||
| reversed = char + reversed; | ||
| } | ||
| return reversed; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| function solution(my_string, n) { | ||
| var answer = ''; | ||
| for (const char of my_string) { | ||
| answer += char.repeat(n); | ||
| } | ||
|
|
||
| return answer; | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| function solution(num_list) { | ||
| return num_list.reverse(); | ||
sgoldenbird marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| function solution(numbers) { | ||
| let answer = 0; | ||
| let sum = 0; | ||
|
|
||
| for(let num of numbers) { | ||
| sum += num | ||
| } | ||
|
|
||
| answer = sum / numbers.length; | ||
|
|
||
| return answer; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| function solution(n) { | ||
| var answer = Number.isInteger(Math.sqrt(n)) ? 1 : 2; | ||
sgoldenbird marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| return answer; | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| function solution(num_list) { | ||
| let answer = []; | ||
| let evenCount = 0; | ||
| let oddCount = 0; | ||
|
|
||
| for (let num of num_list) { | ||
| if (num % 2 === 0) { | ||
| evenCount += 1; | ||
| } else { | ||
| oddCount += 1; | ||
| } | ||
| } | ||
|
|
||
| answer = [evenCount, oddCount]; | ||
| return answer; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| function solution(my_string, letter) { | ||
| var answer = ''; | ||
| for (const char of my_string){ | ||
| if(char !== letter){ | ||
| answer += char; | ||
| } | ||
| } | ||
|
|
||
| return answer; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| function solution(message) { | ||
| var answer = message.length * 2; | ||
| return answer; | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.