일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- 엘리스 ai 트랙
- 프론트개발공부
- 프론트개발
- 간단한 날씨 웹 만들기
- reactnativecli
- [파이썬 실습] 기초 문제
- 부트캠프
- 개발일기
- 자바스크립트 날씨 웹 만들기
- 개발공부
- 코드스테이츠
- [파이썬 실습] 심화 문제
- 코딩부트캠프
- [AI 5기] 연습 문제집
- 엘리스
- 자바스크립트 날씨
- 삼항연산자
- JavaScript
- 자바스크립트 sort()
- leetcode
- HTML
- 자바스크립트 split()
- 리트코드
- 프로그래머스
- [파이썬 실습] 중급 문제
- 자바스크립트
- 날씨 웹 만들기
- RN 프로젝트
- 엘리스 AI 트랙 5기
- 자바스크립트 reduce()
- Today
- Total
목록leetcode (32)
개발조각

문제 https://leetcode.com/problems/search-in-rotated-sorted-array/ Search in Rotated Sorted Array - 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 이번 문제는 설명할 것도 없어서 소스코드만 올리고 끝내겠습니다. 소스코드 var search = function(nums, target) { return nums.findIndex(x=> x === target); };

안녕하세요. 개발조각입니다.😊 이렇게 연속으로 두번쓸 생각은 없었는데 어제 안한 것까지 생각해서 두 개를 올려보았습니다. 35번 문제가 easy라서 먼저 풀었는데 왠지 34번도 비슷할 것 같아서 문제만 봐야지 했다가 오? 이건 쉬운 문제다 라는 생각이 들어서 풀어보았습니다. https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/ Find First and Last Position of Element in Sorted Array - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your ..

안녕하세요. 개발조각입니다.😊 으 슬슬 문제 어려워져서 결국 easy를 풀었습니다. https://leetcode.com/problems/search-insert-position/ Search Insert Position - 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 이번 문제는 쉬운데 이해력이 딸리는 건지?를 띄우면서 풀었습니다. 간단하게 문제에 대해 설명하자면 Input: nums = [1,3,5,6], target = 5 Output: 2 위의 예시와 ..

안녕하세요. 개발조각입니다.😊 이번 문제는 내장 함수를 쓰면 쉬운 문제라 내장 함수 쓰고 끝내버렸습니다. https://leetcode.com/problems/divide-two-integers/ Divide Two Integers - 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 이문제는 dividend / divisor 한 값에 소수점을 버리고 정수부 분만 가지고 오는 문제입니다. Math.floor()를 생각하실 수 있겠지만 아쉽게도 Math.floor()..

문제 https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/ Find the Index of the First Occurrence in a String - 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 해결방안 var strStr = function(haystack, needle) { const regex = new RegExp(needle); let found = hay..

안녕하세요. 개발조각입니다.😊 이번 문제는 26번의 연장선 문제입니다. https://leetcode.com/problems/remove-element/ Remove Element - 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 이문제를 두 번 푸니까 이제야 완전히 이해가 가네요. 해결방안 var removeElement = function(nums, val) { let count = 0; for(let i=0; i

안녕하세요. 개발조각입니다.😊 이번 문제는 솔직히 말자체가 이해가 안 가서 검색해서 찾아봤어요. 아마 제블로그를 보신다면 저와 같이 문제 자체가 이해가 안 가서 보신 분들이겠죠? https://leetcode.com/problems/remove-duplicates-from-sorted-array/ Remove Duplicates from Sorted Array - 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 아래 블로그를 참고해서 풀었습니다. https://r..

안녕하세요. 개발조각입니다.😊 이번 문제도 어떻게 풀어야 될지 몰라서 검색해서 풀어보았습니다. 이번 문제 계기로 재귀 함수를 어떻게 써야 되는지 파악하게 된 것 같아서 기분이 좋아요~ https://leetcode.com/problems/generate-parentheses/ Generate Parentheses - 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 아래의 블로그를 참고해서 풀어보았습니다. https://underdog11.tistory.com/en..