// javascript
const solution = (todo_list, finished) => {
return todo_list.filter((_, index) => !finished[index] );
}
// typescript
const solution = (todo_list:string[], finished:boolean[]):string[] => {
return todo_list.filter((_, index) => !finished[index] );
}
'프로그래머스(코딩 테스트) > Lv.0' 카테고리의 다른 글
조건 문자열 (1) | 2024.10.19 |
---|---|
부분 문자열 (0) | 2024.10.19 |
rny_string (0) | 2024.10.19 |
공백으로 구분하기 2 (0) | 2024.10.19 |
문자열로 변환 (0) | 2024.10.19 |