6 kyu
Begin your day with a challenge, but an easy one.
687 of 2,136raulbc777
Description:
There are no explanations. You have to create the code that gives the following results in Python, Ruby, and Haskell:
one_two_three(0) == [0, 0]
one_two_three(1) == [1, 1]
one_two_three(2) == [2, 11]
one_two_three(3) == [3, 111]
one_two_three(19) == [991, 1111111111111111111]
And it should give the following results in Javascript, Scala, D, Go, Rust, C, and Java:
oneTwoThree(0) == ['0', '0']
oneTwoThree(1) == ['1', '1']
oneTwoThree(3) == ['3', '111']
oneTwoThree(19) == ['991', '1111111111111111111']
In C, the results are to be assigned to seperate pointers.
Puzzles
Similar Kata:
Stats:
Created | Jan 9, 2017 |
Published | Jan 9, 2017 |
Warriors Trained | 5814 |
Total Skips | 189 |
Total Code Submissions | 23228 |
Total Times Completed | 2136 |
Python Completions | 1040 |
Haskell Completions | 47 |
JavaScript Completions | 687 |
Ruby Completions | 83 |
Scala Completions | 15 |
D Completions | 5 |
Go Completions | 57 |
Rust Completions | 54 |
C Completions | 74 |
C++ Completions | 142 |
Java Completions | 69 |
Total Stars | 99 |
% of votes with a positive feedback rating | 86% of 400 |
Total "Very Satisfied" Votes | 314 |
Total "Somewhat Satisfied" Votes | 60 |
Total "Not Satisfied" Votes | 26 |
Total Rank Assessments | 10 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |