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

문제 https://leetcode.com/problems/rotate-image/ Rotate Image - 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 rotate = function(matrix) { let length = matrix.length; let arr = []; let direction1 = 1; let [x, y] = [-1, 0]; while(1){ for(let i=0; i

문제 https://leetcode.com/problems/permutations/ Permutations - 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 permute = function(nums) { let result = []; permutations() function permutations(arr=[]){ if(arr.length === num..
문제 이번 문제는 BigInt를 모르면 못 푸는 문제네요. https://leetcode.com/problems/multiply-strings/ Multiply Strings - 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

문제 https://leetcode.com/problems/combination-sum/ Combination Sum - 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 combinationSum = function(candidates, target) { let result = []; function sumTarget(arr=[], sum=0, idx=0){ if(sum > target) return; if(sum === target){ resul..

문제 https://leetcode.com/problems/count-and-say/ Count and Say - 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 문제만 이해하시면 쉬운문제입니다. 해결방안 아마 이미지를 보시면 이해가 가실 거예요 간단하게 설명을 하자면 만약 n=6을 구한다고 가정하면 n=5일 때 결괏값이 111221입니다. n=6에서는 이전 값 n=5일 때를 분석을 해줍니다. 분석을 할 때 이어지는 값이 똑같은 숫자만큼 구분해주시고요. 예시를 들..

문제 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 위의 예시와 ..