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