about | help | code help+videos | done | prefs |
Given a number n, create an array with odd number starting from 1 to n. e.g. 5 -> {1,3,5} getOddNumArray(1) → [1] getOddNumArray(3) → [1, 3] getOddNumArray(5) → [1, 3, 5] ...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: 100
Copyright Nick Parlante 2017 - privacy