일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SasS
- 자료형
- array
- Algorithm
- 컴포넌트
- 파이썬
- hash table
- JavaScript
- computed
- 자료구조
- 프로그래머스
- scss
- math
- 변수
- Python
- 코딩테스트
- 백준
- JavaSceipt
- HTML
- vue.js
- github
- sorting
- 알고리즘
- greedy
- java
- string
- leetcode
- CSS
- dynamic programming
- JS
- Today
- Total
목록알고리즘 (102)
Posis
[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;..
[LeetCode][JavaScript] 1859. Sorting the Sentence 문제 출처: https://leetcode.com/problems/sorting-the-sentence/ Sorting the Sentence - 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 [직접 푼 코드] const sortSentence = function(s) { return s.split(' ') .sort((a,b) => a[a.length-1] - b[b.le..