일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 알고리즘
- github
- greedy
- dynamic programming
- leetcode
- 프로그래머스
- 파이썬
- array
- math
- 백준
- 컴포넌트
- 코딩테스트
- scss
- computed
- JavaSceipt
- 변수
- sorting
- hash table
- 자료형
- vue.js
- string
- CSS
- java
- HTML
- JS
- Python
- SasS
- 자료구조
- JavaScript
- Algorithm
- Today
- Total
목록알고리즘 (108)
Posis
[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] 58. Length of Last Word 문제 출처: https://leetcode.com/problems/length-of-last-word/ Length of Last Word - 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 lengthOfLastWord = function(s) { return s.trim().split(' ').reverse()[0].length; }; [문제 풀이] 1..
[LeetCode][JavaScript] 860. Lemonade Change 문제 출처: https://leetcode.com/problems/lemonade-change/ Lemonade Change - 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 lemonadeChange = function (bills) { var count5 = 0; var count10 = 0; for (var i = 0; i < bills.length; i..
[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..
[LeetCode][JavaScript] 1025. Divisor Game 문제 출처: https://leetcode.com/problems/divisor-game/ Divisor Game - 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 divisorGame = function (N) { return N % 2 == 0; }; [풀이 방법] 이번 문제는 이해하기가 힘들어 단순하게 예시만 보고 풀었습니다. 혹시나 문제를 이해하시고 다른 ..