-
Notifications
You must be signed in to change notification settings - Fork 113
solve 중간 PR #173
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
Open
Jaeman-Lim
wants to merge
27
commits into
pkiop:master
Choose a base branch
from
Jaeman-Lim:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
solve 중간 PR #173
Changes from 6 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
5700fa8
solve: everyArray
Jaeman-Lim 4ac536d
이름 변경
Jaeman-Lim 2bf264d
challenge 이름 변경
Jaeman-Lim ba6a7a2
solve: expDivOdd
Jaeman-Lim 81ae830
solve: expDivOdd
Jaeman-Lim 256ca14
solve: filterAge
Jaeman-Lim 461bb0a
solve: everyArray
Jaeman-Lim d8d9121
solve: filterIntersection
Jaeman-Lim 3c21fb5
solve: filterOdd
Jaeman-Lim bef44d8
solve: forEachFilter
Jaeman-Lim c90c7b1
solve: forEachFilterIsNaN
Jaeman-Lim 664b800
solve: forEachMap
Jaeman-Lim f027a28
solve: forEachReduce
Jaeman-Lim e52446a
solve: findWord
Jaeman-Lim cffd773
solve: mapAddPercent
Jaeman-Lim ced5882
solve: mapAppendOrder
Jaeman-Lim 69dc828
solve: recommendAd
Jaeman-Lim 13f9106
solve: recommendAd
Jaeman-Lim 857e165
expDivOd
Jaeman-Lim 751a22d
solve: findWord
Jaeman-Lim 064f23a
주석 제거
Jaeman-Lim e773507
solve: figureSkating
Jaeman-Lim 2c14b65
solve: expDivOdd
Jaeman-Lim 8c03ea5
solve: findWord
Jaeman-Lim 907b6f6
solve: mapAddPercent
Jaeman-Lim 7b0ec16
solve: mapAppendOrder
Jaeman-Lim eedacf3
solve: recommendAd
Jaeman-Lim 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,9 @@ | ||
| # 문제제목 | ||
|
|
||
| ## 설명 | ||
|
|
||
| every를 이용해서 모든 원소가 짝수인지 아닌지를 판별하세요 | ||
|
|
||
| ## Expected Output | ||
|
|
||
| true |
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 @@ | ||
| const inputArray = [2, 3, 6, 8, 10]; | ||
|
|
||
| let answer = inputArray.every(item => { | ||
| return item % 2 == 0 | ||
| }) | ||
|
|
||
| console.log(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 @@ | ||
| ## 설명 | ||
|
|
||
| 제곱한 후 3으로 나눈 나머지가 홀수인 것 을 뽑은 배열의 총 합을 구하세요. |
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 @@ | ||
| // 제곱한 후 3으로 나눈 나머지가 홀수인 것 을 뽑은 배열의 총 합을 구하세요. | ||
|
|
||
| const inputArray = [2, 3, 6, 8, 10]; | ||
|
|
||
| let answer = inputArray.map(e => e ** 2) | ||
| .filter(e => e%3 == 1) | ||
| .reduce((acc, cur) => { | ||
| return acc + cur | ||
| }, 0); | ||
| console.log(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,35 @@ | ||
| ## 설명 | ||
|
|
||
| 점수를 계산해서 점수가 높은 순으로 name과 score를 가진 객체의 배열을 출력하세요. | ||
| 단 실격자는 출력하지 않습니다. | ||
|
|
||
| ### 피겨 점수 기준 | ||
|
|
||
| 피겨 점수는 ‘기술점수(TES)+예술점수(PCS)-감점’으로 구성된다. | ||
|
|
||
| 기술점수(TES·Total Element Score)는 기본점수에 수행점수(GOE·Grade Of Execution)를 합산해 도출한다. | ||
|
|
||
| 심판은 선수들이 점프와 스핀의 기술을 제대로 수행하는지 살핀다. 점프에선 회전수를 제대로 지켰는지, 에지를 제대로 사용했는지에 따라 ‘롱 에지’(잘못된 에지 사용)나 ‘다운그레이드’(난이도 하락), ‘어텐션’(주의) 등의 판정을 내린다. 스핀과 스텝시퀀스에 붙는 레벨(1~4)도 이들이 결정한다. | ||
|
|
||
| 9명의 심판은 선수들이 미리 제출한 연기 구성표를 기준으로 과제별 기본점수에서 가·감점을 한다. 이른바 ‘GOE’라 불리는 수행점수다. | ||
|
|
||
| 쇼트프로그램은 점프 3개, 스핀 3개, 스텝 1개의 수행과제가 반드시 포함돼야 한다. | ||
|
|
||
| 예술점수(PCS·Total Program Component Score)는 프로그램의 완성도에 영향을 미치는 스케이팅 기술·동작의 연결·연기·안무·곡 해석 등 5가지를 평가한다. | ||
|
|
||
| 마지막으로 감점이 반영된다. 감점 항목이 발생할 때마다 1점씩 감점된다. | ||
|
|
||
| 원문보기: | ||
| http://news.khan.co.kr/kh_news/khan_art_view.html?art_id=201402172146545#csidx6329aebb6a02152bca884614a7f0544 | ||
|
|
||
| ### 판정 기준 | ||
|
|
||
| - 점수가 가장 높은 사람이 1등이다. | ||
| - 점수는 기술점수(TES) + 예술점수(PCS) - 감점 으로 구성된다. | ||
| - 기술점수(TES)는 기본점수 \* 수행점수(GOE)를 합산해 도출한다. | ||
| - 필수 수행과제를 수행하지 못했을 시 실격이다. | ||
|
|
||
| ### 필수 수행과제 | ||
|
|
||
| - 쇼트프로그램은 점프 3개, 스핀 3개, 스텝 1개의 수행과제가 반드시 포함돼야 한다. | ||
| - 점프와 스핀을 4번 이상 수행했을 시 가장 잘한 3개를 기준으로 한다. |
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,18 @@ | ||
| // 기본 점수 | ||
| const baseScore = { | ||
| jump: 10, | ||
| spin: 20, | ||
| step: 15, | ||
| }; | ||
|
|
||
| const baseAssignment = { | ||
| jump: 3, | ||
| spin: 3, | ||
| step: 1, | ||
| }; | ||
|
|
||
| // write your codes | ||
|
|
||
| function solution(inputArray) {} | ||
|
|
||
| exports.solution = solution; | ||
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,46 @@ | ||
| const { solution } = require('./solve'); | ||
|
|
||
| const test1 = { | ||
| input: [ | ||
| { | ||
| name: '김연아', | ||
| goe: { | ||
| jump: [10, 9, 10], | ||
| spin: [10, 10, 10], | ||
| step: [9], | ||
| }, | ||
| pcs: 30, | ||
| penalty: 0, | ||
| }, | ||
| { | ||
| name: '피겨의 신', | ||
| goe: { | ||
| jump: [10000, 10000], | ||
| spin: [10000, 10000, 10000], | ||
| step: [10000], | ||
| }, | ||
| pcs: 100000, | ||
| penalty: 0, | ||
| }, | ||
| { | ||
| name: '아사다 마오', | ||
| goe: { | ||
| jump: [9, 6, 8, 9], | ||
| spin: [9, 9, 9], | ||
| step: [8], | ||
| }, | ||
| pcs: 29, | ||
| penalty: 10, | ||
| }, | ||
| ], | ||
| answer: [ | ||
| { name: '김연아', score: 1055 }, | ||
| { name: '아사다 마오', score: 939 }, | ||
| ], | ||
| }; | ||
|
|
||
| describe('everyArray', () => { | ||
| test('test1', () => { | ||
| expect(solution(test1.input)).toEqual(test1.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 @@ | ||
| ## 설명 | ||
|
|
||
| 배열 원소의 age가 30이상 50미만인 사람만 있는 객체의 배열을 만드세요 |
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,19 @@ | ||
| // 배열 원소의 age가 30이상 50미만인 사람만 있는 객체의 배열을 만드세요 | ||
| // write your codes | ||
|
|
||
| const inputArray = [ | ||
| {name: '재만', age: 36}, | ||
| {name: '준호', age: 30}, | ||
| {name: '영희', age: 28}, | ||
| {name: '은혜', age: 45}, | ||
| {name: '영수', age: 55} | ||
| ]; | ||
|
|
||
| let answer = inputArray.filter(e => e.age >= 30 && e.age < 50) | ||
| .sort(function(a, b) { | ||
| if (a.age > b.age) return 1; | ||
| if (a.age == b.age) return 0; | ||
| if (a.age < b.age) return -1; | ||
| }) | ||
|
|
||
| console.log(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,5 @@ | ||
| # 문제제목 | ||
|
|
||
| ## 설명 | ||
|
|
||
| 두 배열의 교집합을 출력하세요! |
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(inputArray1, inputArray2) {} | ||
|
|
||
| exports.solution = solution; |
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,15 @@ | ||
| const { solution } = require('./solve'); | ||
|
|
||
| const test1 = { | ||
| input: { | ||
| A: [1, 2, 3, 4, 5], | ||
| B: [3, 4, 5, 6, 7], | ||
| }, | ||
| answer: [3, 4, 5], | ||
| }; | ||
|
|
||
| describe('filterIntersection', () => { | ||
| test('test1', () => { | ||
| expect(solution(test1.input.A, test1.input.B)).toEqual(test1.answer); | ||
| }); | ||
| }); |
File renamed without changes.
File renamed without changes.
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,9 @@ | ||
| # 문제제목 | ||
|
|
||
| ## 설명 | ||
|
|
||
| 용가리라는 단어가 있으면 true 없으면 false를 출력 | ||
|
|
||
| ## Expected Output | ||
|
|
||
| true |
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 @@ | ||
| // write your codes | ||
| function solution(inputArray) {} | ||
|
|
||
| exports.solution = solution; |
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,26 @@ | ||
| const { solution } = require('./solve'); | ||
|
|
||
| const test1 = { | ||
| input: ['잠', '자', '고', '싶', '다', '용가리'], | ||
| answer: true, | ||
| }; | ||
| const test2 = { | ||
| input: ['맛있는', '용가리치킨'], | ||
| answer: false, | ||
| }; | ||
| const test3 = { | ||
| input: ['고질라', '용가리 ', '울트라맨'], | ||
| answer: false, | ||
| }; | ||
|
|
||
| describe('findWord', () => { | ||
| test('test1', () => { | ||
| expect(solution(test1.input)).toEqual(test1.answer); | ||
| }); | ||
| test('test2', () => { | ||
| expect(solution(test2.input)).toEqual(test2.answer); | ||
| }); | ||
| test('test3', () => { | ||
| expect(solution(test3.input)).toEqual(test3.answer); | ||
| }); | ||
| }); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
| ## 설명 | ||
|
|
||
| map 메소드를 사용해 배열 각각 숫자 뒤에 %를 붙인 문자열을 만드세요 |
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 @@ | ||
| // write your codes | ||
| function solution(inputArray) {} | ||
|
|
||
| exports.solution = solution; |
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 @@ | ||
| const { solution } = require('./solve'); | ||
|
|
||
| const test1 = { | ||
| input: [100, 10, 20, 40], | ||
| answer: ['100%', '10%', '20%', '40%'], | ||
| }; | ||
|
|
||
| describe('mapAddPercent', () => { | ||
| test('test1', () => { | ||
| expect(solution(test1.input)).toEqual(test1.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 @@ | ||
| ## 설명 | ||
|
|
||
| 배열의 값을 name 프로퍼티에 넣고 몇번째 원소인지를 order에 넣은 객체의 배열을 출력하세요 |
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 @@ | ||
| // write your codes | ||
| function solution(inputArray) {} | ||
|
|
||
| exports.solution = solution; |
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 @@ | ||
| const { solution } = require('./solve'); | ||
|
|
||
| const test1 = { | ||
| input: ['홍길동', '둘리', '루피'], | ||
| answer: [ | ||
| { name: '홍길동', order: 1 }, | ||
| { name: '둘리', order: 2 }, | ||
| { name: '루피', order: 3 }, | ||
| ], | ||
| }; | ||
|
|
||
| describe('mapAppendOrder', () => { | ||
| test('test1', () => { | ||
| expect(solution(test1.input)).toEqual(test1.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,15 @@ | ||
| # 문제제목 | ||
|
|
||
| 사용자가 안 본 광고는? | ||
|
|
||
| ## 설명 | ||
|
|
||
| 유튜브는 사용자가 프리미엄 회원이 아닌 경우 영상 시작이나 중간에 광고가 나오도록 설정되어 있습니다. | ||
|
|
||
| [2020년 유튜브 인기 광고](https://www.thinkwithgoogle.com/intl/ko-kr/marketing-strategies/video/%EB%8C%80%ED%95%9C%EB%AF%BC%EA%B5%AD-youtube-%EC%9D%B8%EA%B8%B0-%EA%B4%91%EA%B3%A0%EC%98%81%EC%83%81-2020%EB%85%84-%EC%97%B0%EB%A7%90%EA%B2%B0%EC%82%B0/)는 총 열 편으로, 사용자의 일주일간 광고 시청 이력을 통해 해당 사용자가 일주일 동안 안 본 광고를 그 다음주에 노출함으로써 광고들이 사용자에게 골고루 노출되길 원합니다. | ||
|
|
||
| 유저가 매일 유튜브에 접속하여 하루 한 편 이상의 광고를 보았다고 가정할 때, 이 유저가 안 본 광고는 무엇인지 출력해주세요. | ||
|
|
||
| ## Expected Output | ||
|
|
||
| [ '동원F&B' ] |
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,14 @@ | ||
| const userHistory = [ | ||
| { date: '2020-11-03', watched: ['KT', 'BBQ'] }, | ||
| { date: '2020-11-04', watched: ['정관장', 'KT', '딱좋은데이'] }, | ||
| { date: '2020-11-05', watched: ['그랑사가', '농심'] }, | ||
| { date: '2020-11-06', watched: ['BBQ'] }, | ||
| { date: '2020-11-07', watched: ['쌍용자동차', 'BBQ', 'KT'] }, | ||
| { date: '2020-11-08', watched: ['켈로그코리아', '빙그레'] }, | ||
| { date: '2020-11-09', watched: ['KT', '그랑사가', '빙그레'] }, | ||
| ]; | ||
|
|
||
| // write your codes | ||
| function solution(inputArray) {} | ||
|
|
||
| exports.solution = solution; |
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,23 @@ | ||
| const { solution } = require('./solve'); | ||
|
|
||
| const test1 = { | ||
| input: [ | ||
| '동원F&B', | ||
| '정관장', | ||
| 'KT', | ||
| 'BBQ', | ||
| '그랑사가', | ||
| '농심', | ||
| '딱좋은데이', | ||
| '빙그레', | ||
| '쌍용자동차', | ||
| '켈로그코리아', | ||
| ], | ||
| answer: ['동원F&B'], | ||
| }; | ||
|
|
||
| describe('recommendAd', () => { | ||
| test('test1', () => { | ||
| expect(solution(test1.input)).toEqual(test1.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 @@ | ||
| ## 설명 | ||
|
|
||
| reduce 메소드를 사용해 최댓값의 값을 maxValue에, 해당 값의 index를 idx에 넣은 객체를 출력하세요 |
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 @@ | ||
| // write your codes | ||
| function solution(inputArray) {} | ||
|
|
||
| exports.solution = solution; |
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,28 @@ | ||
| const { solution } = require('./solve'); | ||
|
|
||
| const test1 = { | ||
| input: [3, 29, 38, 12, 57, 74, 40, 85, 61], | ||
| answer: { maxValue: 85, idx: 7 }, | ||
| }; | ||
|
|
||
| const test2 = { | ||
| input: [-24, -2, -13, -49, -999999, -17], | ||
| answer: { maxValue: -2, idx: 1 }, | ||
| }; | ||
| //최댓값이 중복일 때에는 먼저 나온 최댓값의 인덱스를 유지하도록 설정하였습니다. | ||
| const test3 = { | ||
| input: [2, -20, 21, -874, 99, -16, -29, 99], | ||
| answer: { maxValue: 99, idx: 4 }, | ||
| }; | ||
|
|
||
| describe('reduceMaxValueNIndex', () => { | ||
| test('test1', () => { | ||
| expect(solution(test1.input)).toEqual(test1.answer); | ||
| }); | ||
| test('test2 : 음수 테스트', () => { | ||
| expect(solution(test2.input)).toEqual(test2.answer); | ||
| }); | ||
| test('test3 : 중복된 최대값 테스트', () => { | ||
| expect(solution(test3.input)).toEqual(test3.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 @@ | ||
| ## 설명 | ||
|
|
||
| 입력받은 객채배열의 nickname을 key, name을 value로 하는 객체를 출력하세요 |
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 @@ | ||
| // write your codes | ||
| function solution(inputArray) {} | ||
|
|
||
| exports.solution = solution; |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 문제를 안푸셔서 오답으로 나오네요!