Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 470 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 470 Bytes

Length and two values.

7 kyu link to kata
my solution

Given an integer n and two other values, build an array of size n filled with these two values alternating.

Examples

5, true, false     -->  [true, false, true, false, true]
10, "blue", "red"  -->  ["blue", "red", "blue", "red", "blue", "red", "blue", "red", "blue", "red"]
0, "one", "two"    -->  []

Good luck!