Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
Testing
Code
Diff
  • def replicate(times, num):
        if times <= 0: return []
        return [num] + replicate(times-1, num)
    
    replicate(8,5)
  • 11 def replicate(times, num):
    22 if times <= 0: return []
    33 return [num] + replicate(times-1, num)
    4+
    5+replicate(8,5)