문제. original price에서 1개 이상을 살때마다 그 다음 product는 sale에 해당되는 할인가를 계속 적용한다. 그 할인된 가격이 limit과 같아지면 할인을 멈추고 총 budget 만큼 합계가 되면 총 몇개의 게임을 샀는지 total game count 를 return 한다. let original = 20; let sale = 3; let limit = 6; let budget = 80; function Sales(o,s,l,b){ let total = o; //여기서 시작이라서. let count = 0; while(total
WHAT I LEARNED using regular expression split() - The separator can also be a regular expression. 정규식을 split()의 separator로 사용가능. let s = "camelCaseHowManyWords" function CamelCase(str) { let re = /[A-Z]/g; //g is global //regular expression can separate a string at the instance there is a capitalized letter. let wordSplit = str.split(re); let result = wordSplit.length; console.log(result); //5 }..
- Total
- Today
- Yesterday
- spring boot application
- easy algorithm
- ... in Javascript
- Javascript Algorithm
- equals()
- Object type casting
- algorithm
- hackerrank solution
- C++
- javascript
- hackerrank
- hackerrank javascript
- math.max
- easy javascript algorithm
- substring()
- Collection Framework
- math.abs
- code refactoring
- repeat()
- 프로그래머스 알고리즘문제
- hackerrank javascript solution
- compareTo()
- rest parameter
- 프로그래머스 알고리즘
- string class in java
- HackerRank Algorithm
- java
- HashMap
- 프로그래머스
- 알고리즘
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |