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
- math.max
- Collection Framework
- java
- C++
- 프로그래머스
- hackerrank
- code refactoring
- HackerRank Algorithm
- math.abs
- repeat()
- javascript
- string class in java
- HashMap
- hackerrank solution
- easy algorithm
- 프로그래머스 알고리즘
- ... in Javascript
- rest parameter
- 프로그래머스 알고리즘문제
- 알고리즘
- hackerrank javascript
- hackerrank javascript solution
- Javascript Algorithm
- algorithm
- equals()
- Object type casting
- easy javascript algorithm
- spring boot application
- substring()
- compareTo()
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함