7 kyu
Maximum Multiple
2,228 of 32,984MrZizoScream
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 | 49396 |
Total Skips | 4061 |
Total Code Submissions | 66085 |
Total Times Completed | 32984 |
C++ Completions | 2228 |
Ruby Completions | 588 |
JavaScript Completions | 9420 |
Crystal Completions | 44 |
Python Completions | 7949 |
NASM Completions | 70 |
Fortran Completions | 52 |
C# Completions | 1352 |
Java Completions | 3126 |
Lua Completions | 223 |
C Completions | 1117 |
Haskell Completions | 239 |
Rust Completions | 639 |
PHP Completions | 684 |
Dart Completions | 563 |
Julia Completions | 72 |
TypeScript Completions | 540 |
CoffeeScript Completions | 37 |
Elixir Completions | 118 |
Reason Completions | 17 |
Factor Completions | 24 |
R Completions | 183 |
Racket Completions | 48 |
Elm Completions | 53 |
Clojure Completions | 104 |
Forth Completions | 56 |
Erlang Completions | 78 |
Go Completions | 911 |
F# Completions | 77 |
Prolog Completions | 50 |
Groovy Completions | 71 |
Solidity Completions | 331 |
Kotlin Completions | 796 |
Nim Completions | 31 |
Objective-C Completions | 43 |
OCaml Completions | 69 |
PowerShell Completions | 91 |
PureScript Completions | 29 |
Scala Completions | 223 |
Shell Completions | 194 |
SQL Completions | 2213 |
Swift Completions | 815 |
VB Completions | 120 |
CFML Completions | 31 |
CommonLisp Completions | 129 |
Haxe Completions | 25 |
Pascal Completions | 45 |
Perl Completions | 74 |
Raku Completions | 24 |
COBOL Completions | 14 |
D Completions | 18 |
Total Stars | 262 |
% of votes with a positive feedback rating | 90% of 3475 |
Total "Very Satisfied" Votes | 2867 |
Total "Somewhat Satisfied" Votes | 518 |
Total "Not Satisfied" Votes | 90 |
Total Rank Assessments | 29 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |