Skip to content

slimovic/javascript-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Instructions

  1. Fork this repo to your work station.
  2. Answer the following questions by creating a JavaScript file for each of the questions.
  3. Commit and push your code to your fork.
  4. Create a pull request back to the master branch of the origin repo.

Questions

  1. Create a function that takes an unlimited amount of number parameters, and returns an array of all the permutations possible. For example, myFunction(4, 7, 2) {} should return [472, 427, 724, 742, 247, 274].

  2. Create a function that can find the Nth smallest number in an array. The array can be very very big, so you are not allowed using the Array.sort() method. Try to build a function that would perform fast. Also, explain why using Array.sort() isn't a good idea when sorting large arrays.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published