7 kyu
Maximum Multiple
2,218 of 32,704MrZizoScream
Description:
Task
Given a Divisor and a Bound , Find the largest integer N , Such That ,
Conditions :
N is divisible by divisor
N is less than or equal to bound
N is greater than 0.
Notes
- The parameters (divisor, bound) passed to the function are only positive values .
- It's guaranteed that a divisor is Found .
Input >> Output Examples
divisor = 2, bound = 7 ==> return (6)
Explanation:
(6) is divisible by (2) , (6) is less than or equal to bound (7) , and (6) is > 0 .
divisor = 10, bound = 50 ==> return (50)
Explanation:
(50) is divisible by (10) , (50) is less than or equal to bound (50) , and (50) is > 0 .*
divisor = 37, bound = 200 ==> return (185)
Explanation:
(185) is divisible by (37) , (185) is less than or equal to bound (200) , and (185) is > 0 .
Playing with Numbers Series
Playing With Lists/Arrays Series
Bizarre Sorting-katas
For More Enjoyable Katas
ALL translations are welcomed
Enjoy Learning !!
Zizou
Fundamentals
Similar Kata:
Stats:
Created | Mar 27, 2018 |
Published | Mar 27, 2018 |
Warriors Trained | 48836 |
Total Skips | 4026 |
Total Code Submissions | 65512 |
Total Times Completed | 32704 |
C++ Completions | 2218 |
Ruby Completions | 587 |
JavaScript Completions | 9362 |
Crystal Completions | 44 |
Python Completions | 7839 |
NASM Completions | 69 |
Fortran Completions | 52 |
C# Completions | 1343 |
Java Completions | 3108 |
Lua Completions | 223 |
C Completions | 1114 |
Haskell Completions | 238 |
Rust Completions | 636 |
PHP Completions | 680 |
Dart Completions | 552 |
Julia Completions | 72 |
TypeScript Completions | 534 |
CoffeeScript Completions | 37 |
Elixir Completions | 117 |
Reason Completions | 17 |
Factor Completions | 24 |
R Completions | 181 |
Racket Completions | 47 |
Elm Completions | 52 |
Clojure Completions | 104 |
Forth Completions | 56 |
Erlang Completions | 78 |
Go Completions | 905 |
F# Completions | 76 |
Prolog Completions | 49 |
Groovy Completions | 71 |
Solidity Completions | 321 |
Kotlin Completions | 785 |
Nim Completions | 31 |
Objective-C Completions | 43 |
OCaml Completions | 67 |
PowerShell Completions | 90 |
PureScript Completions | 28 |
Scala Completions | 223 |
Shell Completions | 193 |
SQL Completions | 2182 |
Swift Completions | 807 |
VB Completions | 117 |
CFML Completions | 31 |
CommonLisp Completions | 126 |
Haxe Completions | 25 |
Pascal Completions | 44 |
Perl Completions | 72 |
Raku Completions | 23 |
COBOL Completions | 13 |
D Completions | 18 |
Total Stars | 262 |
% of votes with a positive feedback rating | 90% of 3461 |
Total "Very Satisfied" Votes | 2854 |
Total "Somewhat Satisfied" Votes | 517 |
Total "Not Satisfied" Votes | 90 |
Total Rank Assessments | 29 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |