Plus Minus
Question Given an array of integers, calculate the ratios of its elements that are positive, negative, and zero. Print the decimal value of each fraction on a new line with 6 places after the decimal. 주어진 Array안에서 negative value, positive value 그리고 0 의 수가 array크기에 얼마나 비례하는지 소수점 6자리까지 프린트하는 문제. Example output 0.400000 0.400000 0.200000 Solution let arr = [1, 1, 0, -1, -1]; function diagonalDiffer..
Algorithms
2020. 7. 29. 01:33
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- easy javascript algorithm
- Collection Framework
- javascript
- math.max
- java
- compareTo()
- spring boot application
- ... in Javascript
- algorithm
- 프로그래머스 알고리즘문제
- easy algorithm
- HashMap
- hackerrank
- substring()
- C++
- equals()
- string class in java
- repeat()
- hackerrank javascript solution
- 프로그래머스 알고리즘
- hackerrank solution
- HackerRank Algorithm
- 알고리즘
- rest parameter
- Object type casting
- math.abs
- 프로그래머스
- hackerrank javascript
- code refactoring
- Javascript Algorithm
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함