| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
- html
- react-native-dotenv
- Each child in a list should have a unique "key" prop.
- 이미지 데이터 타입
- animation
- github lfs
- adb pair
- camera permission
- Recoil
- Can't resolve
- electron-packager
- rolldown
- github pdf
- npm package
- device in use
- vercel git lfs
- camera access
- ffi-napi
- ELECTRON
- react-native
- nextjs
- dvh
- 티스토리 성능
- github 100mb
- Git
- augmentedDevice
- adb connect
- Failed to compiled
- silent printing
- custom printing
- Today
- Total
목록2022/06/27 (4)
Bleeding edge
코딩테스트 문제를 풀다보면, new Map()이라는 생성자를 많이 사용하게된다. 문제를 풀다보면 이게 됬다 저게 안됬다 하는 경우가 상당히 많았었는데 오늘 문제를 풀면서 알게된 것이 있었다. map에는 저장하는 방법이 두가지가 있다. 1. set을 이용한 저장 방법 map.set(1,1) 2. map의 keyd에 저장하는 방법 map[2] = 2 위의 두가지 방법은 console로 표시를한다면, Map(1) { 1 => 1, '2': 2 } 이렇게 나온다. map으로써 저장된 1과, object로 저장된 2. 1로 저장한 방법같은 경우에는, 숫자로 저장되었고 2로 저장한방법은 문자열로 저장이 되었다. 두 저장방법에 따라서 또 사용할 수 있는 것도 다르다. 만일 1번방법으로 저장한 경우에는 Array.fr..
https://leetcode.com/problems/find-players-with-zero-or-one-losses/ Find Players With Zero or One Losses - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 1. hash map과 return 할 result를 만든다 const hash = {} const result = [[], []] 2. 주어진 matches에서 갯수를 카운팅한다 matches.map(([win, lose]) ..
https://leetcode.com/problems/divide-array-into-equal-pairs/ Divide Array Into Equal Pairs - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 앞으로 문제풀이를 할 때 효율성이 낮으면 반드시 효율성이 낮은 이유를 검색해보고 풀어야겠다. 1. 문제는 간단하다 2개의 짝이 떨어지는 경우를풀이를 해야하기 때문에 sort를 했다. let answer = nums.sort((a, b) => a - b)..
https://leetcode.com/problems/capitalize-the-title/ Capitalize the Title - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제는 되게 심플하기에, 효율성을 올리기 위해서 노력(?) 하였다. 1. result로 title을 스플릿한다. answer을 ""로 선언한다. let result = title.split(' ') let answer = "" 2.result를 기준으로 for문을 만든다. for (l..