| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- react-native-dotenv
- vercel git lfs
- augmentedDevice
- github 100mb
- react-native
- animation
- custom printing
- Failed to compiled
- github pdf
- npm package
- Each child in a list should have a unique "key" prop.
- silent printing
- camera access
- Can't resolve
- 티스토리 성능
- camera permission
- Recoil
- device in use
- electron-packager
- nextjs
- html
- adb connect
- Git
- 이미지 데이터 타입
- rolldown
- adb pair
- ELECTRON
- github lfs
- dvh
- ffi-napi
- Today
- Total
목록2022/06/20 (3)
Bleeding edge
https://leetcode.com/problems/sender-with-largest-word-count/ Sender With Largest Word Count - 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 이 문제에서는, map과 여러 조건의 sort를 사용하는 문제이다. 1. 먼저 map을 한개 만들어둔다. 이렇게 key를 활용하는 경우에는 map이 효율적이다. const map = new Map() 2. 주어진 senders를 기준으로 루프를 만들..
https://leetcode.com/problems/pascals-triangle/ Pascal's Triangle - 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.모든 삼각형에 1을 처음에 넣는다 2. 위에 삼각형의 좌 우에 해당하는 칸을 더하면서 계속 내려간다! 단지 차이가 있다고 하면, 자바스크립트의 모양은 저렇게 삼각형은 아니기에 모양을 살짝 다른식으로 생각하면 풀이하기가 쉽다. 문제풀이 1. return 할 ar..
1회차 풀이에서는 아주 큰 숫자가 대입되서 Wrong!이 나왔다. 문제는 아주 많은 숫자가 들어올 수 있다고 생각하고 BigInt를 사용하여 문제를 풀이하였다. 1. 주어진 문자를 join으로 문자로 만든다 주어진 arr가 [1,2,3]이라고 한다면 123이 된다. digits.join("") 2. 1에서 구한 식을 BigInt로 감싼다. 이 때 결과값은 123n이 된다 BigInt(digits.join("")) 3. 2에서 구한식에 BigInt(1)을 더하고, 문자로 바꾼다. 이유는, BigInt는 바로 Split이 안되기 떄문이다. (BigInt(digits.join("")) + BigInt(1)).toString() 4. 3에서 구한 것을 split한 후, 각 문자에 대하여 map을 취하여 숫자로 ..