Skip to content

limesharp/developer-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Limesharp Developer Test

Please, don't fork this repo, clone it or download it locally and then commit changes after each task into a new repo of your own, and send us the link. We will get back to you shortly.

Languages accepted: Javascript or PHP.

Task 1:

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]

Task 2:

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

Task 3 (optional, for bonus points):

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:

If we type in our console your function and next_binary_number([1,0,0,0,0,0,0,0,0,1]) then the result should look like 1,0,0,0,0,0,0,0,1,0 (or as an array).

If you get invited to the first interview read the "What to expect.md" file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published