| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- animation
- 이미지 데이터 타입
- Can't resolve
- html
- github pdf
- react-native
- Git
- ffi-napi
- 티스토리 성능
- custom printing
- github lfs
- camera permission
- electron-packager
- adb connect
- github 100mb
- dvh
- npm package
- nextjs
- device in use
- augmentedDevice
- Each child in a list should have a unique "key" prop.
- vercel git lfs
- camera access
- silent printing
- ELECTRON
- rolldown
- react-native-dotenv
- adb pair
- Recoil
- Failed to compiled
- Today
- Total
목록전체 글 (345)
Bleeding edge
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..
https://leetcode.com/problems/minimum-time-to-make-rope-colorful/ Minimum Time to Make Rope Colorful - 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, reduce, filter를 자주쓰다보니 block scope에 대한 공부가 잘되는 것 같다. 1. 이 문제는 글자에서 다음글자가 같은지 다른지를 체크해야하고, 겹치는 글자가 2개이상인지 확인해야한다 따라서, 글자가 들어..
https://leetcode.com/problems/find-the-k-beauty-of-a-number/ Find the K-Beauty of a Number - 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 주어진 k의 길이만큼 nums를 자르고, 자르고 나온 숫자가 x라고 했을때 x가 num로 나누었을 때 0인 경우의 수를 세는 문제이다. 아마 풀이를 보는게 더 이해가 빠를것 같다. 1. 0인 ansewr와 array인 return을 선언한다. 그리고 n..
https://leetcode.com/problems/height-checker/ Height Checker - 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 문제풀이는 총 3번했다. 1. sort를 두번 써서 2. 1번에서 푼문제를 살짝 수정 3. 2번에서 효율성 개선 1. sort를 두번 썼을 때는 index가 같은 숫자가 많은경우, 오답이 처리되서 좀 더 단순하게 풀기 위해 다시 풀었다. 2번풀이 1. 원래의 본문과 차이가 있으면, count를 해줄 ans..
https://leetcode.com/problems/apply-discount-to-prices/ Apply Discount to Prices - 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.주어진 sentence를 " "로 분리합니다. 잘보면 $12a 이런 문자는 나눌 수 없는 것을 볼 수 있습니다. 즉 $숫자 단위로 ..
https://leetcode.com/problems/day-of-the-week/ Day of the Week - 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 자바스크립트의 new Date를 이용하여, 요일을 얻고 문제에 주어진 array를 이용하여 요일을 return 하는 문제이다. 단지 문제를 1회차 풀이에서 틀렸었는데 주의를 해야하는 것이 new Date함수이다. new Date함수의 모양을 잘봐보자! new Date(year, month index, ..
https://leetcode.com/problems/counting-bits/ Counting Bits - 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 0~n까지를2진법으로 바꾸고, 1만카운트하고 push하는 문제이다. 만일 문제의 효율성을 올리고 싶다면, 지금 아래와같이 for문으로 0~n을 넣고 변환할게 아니라, while문을 활용하고 while문은 return 할 리스트의 n+1만큼 길이가 될 때까지, 리스트의 내용은 2진법에서 나올 수 있는 1의 경우..