Kata Recursive Replication – Python Solution Video
Problem Formulation The following problem formulation is taken from this Kata. Design a recursive function called replicate(times, number) that returns an array of repetitions of the number argument. For example, replicate(3, 5) should return the list [5, 5, 5]. If the times argument is negative, return an empty array. Do not use loops to solve … Read more