Fork this repo, commit changes after each task and send us the link to your repo (don't do a Pull Request, just send us the link). We will get back to you shortly. Languages accepted: Javascript or PHP.
Make this work (repeat 3 times the contents of an array):
repeat([1,2,3]) //[1,2,3,1,2,3,1,2,3]
Your solution:
if we type in our console your function and repeat([1,2,3]) then the result should be [1,2,3,1,2,3,1,2,3]
Make this work (no vowels, lowercase except the first letter):
reformat("liMeSHArp DeveLoper TEST") //Lmshrp dvlpr tst
Your solution:
if we type in our console your function and reformat("liMeSHArp DeveLoper TEST") then the result should be Lmshrp dvlpr tst
Make this work (without using any built in functions, only a for
loop, return the next binary number in a string or as an array)
next_binary_number([1,0]) // [1,1]
// possible test cases:
// [1,0] => [1,1]
// [1,1] => [1,0,0]
// [1,1,0] => [1,1,1]
// .......
// [1,0,0,0,0,0,0,0,0,1] => [1,0,0,0,0,0,0,0,1,0]
Your solution: