8 kyu
Count the Monkeys!
31,196 of 73,137PG1
Description:
You take your son to the forest to see the monkeys. You know that there are a certain number there (n), but your son is too young to just appreciate the full number, he has to start counting them from 1.
As a good parent, you will sit and count with him. Given the number (n), populate an array with all numbers up to and including that number, but excluding zero.
For example(Input --> Output):
10 --> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
1 --> [1]
Arrays
Fundamentals
Lists
Algorithms
Similar Kata:
Stats:
Created | Mar 26, 2016 |
Published | Mar 26, 2016 |
Warriors Trained | 88175 |
Total Skips | 1407 |
Total Code Submissions | 158891 |
Total Times Completed | 73137 |
JavaScript Completions | 31196 |
Ruby Completions | 2006 |
Python Completions | 19068 |
Haskell Completions | 635 |
C# Completions | 3160 |
Java Completions | 7086 |
Elixir Completions | 293 |
CoffeeScript Completions | 36 |
Crystal Completions | 41 |
C Completions | 676 |
NASM Completions | 28 |
Julia Completions | 45 |
PHP Completions | 1319 |
Dart Completions | 611 |
Racket Completions | 40 |
Go Completions | 1356 |
C++ Completions | 5121 |
Rust Completions | 734 |
Elm Completions | 81 |
Factor Completions | 18 |
R Completions | 179 |
Reason Completions | 11 |
Lua Completions | 206 |
Clojure Completions | 163 |
Swift Completions | 1520 |
TypeScript Completions | 657 |
Prolog Completions | 36 |
Scala Completions | 47 |
Total Stars | 551 |
% of votes with a positive feedback rating | 92% of 6796 |
Total "Very Satisfied" Votes | 5826 |
Total "Somewhat Satisfied" Votes | 845 |
Total "Not Satisfied" Votes | 125 |