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

Stats:

CreatedJan 9, 2017
PublishedJan 9, 2017
Warriors Trained5814
Total Skips189
Total Code Submissions23228
Total Times Completed2136
Python Completions1040
Haskell Completions47
JavaScript Completions687
Ruby Completions83
Scala Completions15
D Completions5
Go Completions57
Rust Completions54
C Completions74
C++ Completions142
Java Completions69
Total Stars99
% of votes with a positive feedback rating86% of 400
Total "Very Satisfied" Votes314
Total "Somewhat Satisfied" Votes60
Total "Not Satisfied" Votes26
Total Rank Assessments10
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • raulbc777 Avatar
  • suic Avatar
  • anter69 Avatar
  • tachyonlabs Avatar
  • Voile Avatar
  • NunoOliveira Avatar
  • rowcased Avatar
  • solitude Avatar
  • jebreen Avatar
  • akar-0 Avatar
  • Just4FunCoder Avatar
  • 66  Avatar
  • KayleighWasTaken Avatar
  • saudiGuy Avatar
Ad