일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- sorting
- computed
- HTML
- array
- 자료구조
- 컴포넌트
- 백준
- 변수
- CSS
- leetcode
- 파이썬
- greedy
- Algorithm
- 자료형
- 코딩테스트
- Python
- vue.js
- math
- JavaSceipt
- SasS
- hash table
- JavaScript
- dynamic programming
- JS
- scss
- github
- 알고리즘
- 프로그래머스
- string
- java
- Today
- Total
목록greedy (3)
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] 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] 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..