8 kyu
Find Multiples of a Number
18,809 of 49,669Spherixo
Description:
In this simple exercise, you will write a function that takes two integers; n
and limit
; and returns a list of the multiples of n
up to and possibly including limit
.
It is guaranteed that n > 0
and limit >= n
.
For example, if the parameters passed are (2, 6)
, the function should return [2, 4, 6]
as 2
, 4
, and 6
are the multiples of 2
up to 6
.
Examples
n = 2; limit = 6 --> [2, 4, 6]
n = 2; limit = 5 --> [2, 4]
Fundamentals
Arrays
Similar Kata:
Stats:
Created | Mar 16, 2017 |
Published | Mar 16, 2017 |
Warriors Trained | 76013 |
Total Skips | 4574 |
Total Code Submissions | 118460 |
Total Times Completed | 49669 |
Python Completions | 18809 |
Ruby Completions | 1017 |
JavaScript Completions | 22461 |
Crystal Completions | 43 |
C# Completions | 2340 |
Rust Completions | 1076 |
TypeScript Completions | 976 |
C Completions | 534 |
Factor Completions | 15 |
Go Completions | 1645 |
D Completions | 21 |
Lua Completions | 208 |
OCaml Completions | 118 |
Scala Completions | 117 |
Haskell Completions | 198 |
CoffeeScript Completions | 16 |
PHP Completions | 531 |
COBOL Completions | 12 |
Java Completions | 1192 |
Total Stars | 500 |
% of votes with a positive feedback rating | 93% of 4275 |
Total "Very Satisfied" Votes | 3726 |
Total "Somewhat Satisfied" Votes | 491 |
Total "Not Satisfied" Votes | 58 |
Total Rank Assessments | 12 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |