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

Stats:

CreatedMar 27, 2018
PublishedMar 27, 2018
Warriors Trained48836
Total Skips4026
Total Code Submissions65512
Total Times Completed32704
C++ Completions2218
Ruby Completions587
JavaScript Completions9362
Crystal Completions44
Python Completions7839
NASM Completions69
Fortran Completions52
C# Completions1343
Java Completions3108
Lua Completions223
C Completions1114
Haskell Completions238
Rust Completions636
PHP Completions680
Dart Completions552
Julia Completions72
TypeScript Completions534
CoffeeScript Completions37
Elixir Completions117
Reason Completions17
Factor Completions24
R Completions181
Racket Completions47
Elm Completions52
Clojure Completions104
Forth Completions56
Erlang Completions78
Go Completions905
F# Completions76
Prolog Completions49
Groovy Completions71
Solidity Completions321
Kotlin Completions785
Nim Completions31
Objective-C Completions43
OCaml Completions67
PowerShell Completions90
PureScript Completions28
Scala Completions223
Shell Completions193
SQL Completions2182
Swift Completions807
VB Completions117
CFML Completions31
CommonLisp Completions126
Haxe Completions25
Pascal Completions44
Perl Completions72
Raku Completions23
COBOL Completions13
D Completions18
Total Stars262
% of votes with a positive feedback rating90% of 3461
Total "Very Satisfied" Votes2854
Total "Somewhat Satisfied" Votes517
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