본문 바로가기 메뉴 바로가기

Studying programming

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Studying programming

검색하기 폼
  • Jimin's Programming (194)
    • Algorithms (54)
    • JavaScript (16)
    • Vue.js (3)
    • Node.js (3)
    • React.js (7)
    • React Native (0)
    • Spring Boot (13)
    • JAVA (58)
    • C++ (17)
    • Programming (19)
    • Computer basics (4)
  • 방명록

forEach (1)
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
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
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
  • 프로그래머스 알고리즘
more
«   2025/06   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바