GithubHelp home page GithubHelp logo

javascript-test's Introduction

IMPORTANT

NO PLAGIARISM WILL BE TOLERATED. We run every test through our plagiarism tool and you will be removed from the list of potential candidates if we find that you have copy pasted code from the web.

We believe that most people are honest, professional individuals, and we wish to provide candidates a familiar, and stress-free environment to do the test in.

We also believe that you should have access to the internet for this test, as in real life, you will sometimes have no choice but to refer to the internet in order to solve a complex problem.

Feel free to research ways to solve the two questions in this test, but try to be different and innovative when creating a solution. DO NOT PLAGIARIZE.

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.

Run the candidate's response

  • Ensure that node JS is installed and available globally.
  • run node index.js in the root of this directory.
  • results of the two questions will be printed on the console.

javascript-test's People

Contributors

quickseries avatar jensechu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.