일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- dynamic programming
- scss
- 변수
- JS
- HTML
- JavaScript
- 컴포넌트
- computed
- hash table
- vue.js
- 파이썬
- leetcode
- github
- 프로그래머스
- 알고리즘
- 코딩테스트
- Python
- 자료구조
- CSS
- SasS
- string
- 자료형
- sorting
- math
- array
- 백준
- java
- JavaSceipt
- Algorithm
- greedy
- Today
- Total
목록leetcode (9)
Posis
[LeetCode][JavaScript] 561. Array Partition I 문제 출처: https://leetcode.com/problems/array-partition-i/ Array Partition I - 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 arrayPairSum = function(nums) { nums.sort((a,b) => a-b) let result = 0 for(let i=0; i
[LeetCode][JavaScript] 1436. Destination City 문제 출처: https://leetcode.com/problems/destination-city/ Destination City - 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 destCity = function(paths) { let dest = paths[0][1] while(true){ const _newDest = paths.find(path =>..
[LeetCode][JavaScript] 70. Climbing Stairs 문제 출처: https://leetcode.com/problems/climbing-stairs/ Climbing Stairs - 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 climbStairs = function (n) { if (n < 3) return n; let first = 1; let second = 2; for (let i = 3; i
[LeetCode][JavaScript] 1323. Maximum 69 Number 문제 출처: https://leetcode.com/problems/maximum-69-number/ Maximum 69 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 [직접 푼 코드] var maximum69Number = function(num) { var str = num.toString(); var res = str.replace('6','9'); retur..
[LeetCode][JavaScript] 389. Find the Difference 문제 출처: https://leetcode.com/problems/find-the-difference/ Find the Difference - 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 findTheDifference = function (s, t) { s = s.split('').sort(); t = t.split('').sort(); for (l..
[LeetCode][JavaScript] 66. Plus One 문제 출처: https://leetcode.com/problems/plus-one/ Plus One - 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 plusOne = function(digits) { for (let i = digits.length - 1; i >= 0; i--) { if (digits[i] !== 9) { digits[i]++; return digits;..