7 kyu
Multiple remainder of the division
172 of 467Dmitry Kudla
Description:
Your task it to return true
if the fractional part (rounded to 1 digit) of the result (a
/ b
) exists, more than 0
and is multiple of n
.
Otherwise return false
. (For Python return True or False)
All arguments are positive digital numbers.
Rounding works like toFixed() method. (if more than...5 rounds up)
Find exapmles below:
isMultiple(5, 2, 3) -> false // 2.5 -> 5 is not multiple of 3
isMultiple(5, 3, 4) -> false // 1.7 -> 7 is not multiple of 4
isMultiple(5, 4, 3) -> true // 1.3 -> 3 is multiple of 3
isMultiple(666, 665, 2) -> false // 1.0 -> return false
Fundamentals
Similar Kata:
Stats:
Created | Dec 12, 2017 |
Published | Dec 12, 2017 |
Warriors Trained | 1204 |
Total Skips | 39 |
Total Code Submissions | 3838 |
Total Times Completed | 467 |
JavaScript Completions | 270 |
Python Completions | 172 |
Ruby Completions | 48 |
Total Stars | 9 |
% of votes with a positive feedback rating | 78% of 137 |
Total "Very Satisfied" Votes | 93 |
Total "Somewhat Satisfied" Votes | 27 |
Total "Not Satisfied" Votes | 17 |
Total Rank Assessments | 5 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |