about | help | code help+videos | done | prefs |
Given a natural number input, write a recursive function that returns a list of the numbers from 1 to the input value, in that order. listNumbers(10) → [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] listNumbers(5) → [1, 2, 3, 4, 5] listNumbers(1) → [1] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 150 Post-solution available
Copyright Nick Parlante 2017 - privacy