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

Stats:

CreatedMar 27, 2018
PublishedMar 27, 2018
Warriors Trained49396
Total Skips4061
Total Code Submissions66085
Total Times Completed32984
C++ Completions2228
Ruby Completions588
JavaScript Completions9420
Crystal Completions44
Python Completions7949
NASM Completions70
Fortran Completions52
C# Completions1352
Java Completions3126
Lua Completions223
C Completions1117
Haskell Completions239
Rust Completions639
PHP Completions684
Dart Completions563
Julia Completions72
TypeScript Completions540
CoffeeScript Completions37
Elixir Completions118
Reason Completions17
Factor Completions24
R Completions183
Racket Completions48
Elm Completions53
Clojure Completions104
Forth Completions56
Erlang Completions78
Go Completions911
F# Completions77
Prolog Completions50
Groovy Completions71
Solidity Completions331
Kotlin Completions796
Nim Completions31
Objective-C Completions43
OCaml Completions69
PowerShell Completions91
PureScript Completions29
Scala Completions223
Shell Completions194
SQL Completions2213
Swift Completions815
VB Completions120
CFML Completions31
CommonLisp Completions129
Haxe Completions25
Pascal Completions45
Perl Completions74
Raku Completions24
COBOL Completions14
D Completions18
Total Stars262
% of votes with a positive feedback rating90% of 3475
Total "Very Satisfied" Votes2867
Total "Somewhat Satisfied" Votes518
Total "Not Satisfied" Votes90
Total Rank Assessments29
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • MrZizoScream Avatar
  • GiacomoSorbi Avatar
  • donaldsebleung Avatar
  • ParanoidUser Avatar
  • JohanWiltink Avatar
  • B1ts Avatar
  • Jay-9 Avatar
  • realfg Avatar
  • clcraig Avatar
  • FArekkusu Avatar
  • monadius Avatar
  • user9277937 Avatar
  • cliffstamp Avatar
  • stellartux Avatar
  • solitude Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • 4500zenja1 Avatar
  • KayleighWasTaken Avatar
Ad