PrimoDev/ apps

Interview Algorithm Serie

Common JavaScript interview algorithms, tested with Jest

  • Any
  • Free
  • Open source
View on GitHub

What is Interview Algorithm Serie?

interview-algorithms is a repository for practicing algorithms that often come up in JavaScript coding interviews. It has 9 challenges, each with a solution and a Jest test.

package.json declares the ISC license and the repository has no license file. To run it, clone the repo, install Jest (npm install -g jest) and run jest.

What it does

  1. 01Reverse a string
  2. 02Palindrome check
  3. 03Reverse an integer
  4. 04Most frequent character
  5. 05FizzBuzz
  6. 06Split an array into chunks
  7. 07Anagrams, capitalize words and steps
  8. 08A Jest test for every challenge

FAQ

How do I run the challenges?
Clone the repo, install Jest globally with npm install -g jest and run jest from the root. To run just one, pass its name, for example jest palindrome --watch.
Does it need specific versions?
Just Node.js and Jest. It uses Jest 29 and plain JavaScript, no framework.
What is the license?
package.json declares ISC. There is no license file in the repository.
How is it different from LeetCode or HackerRank?
It is a small local repo with no online judge: you read the solution, run the tests and change the code on your machine.
Does it accept contributions?
Yes, the README says PRs with new algorithms are welcome. The last commit is from December 2024.

Documentation

README from the lucianodiisouza/interview-algorithm-serie repository, refreshed on every deploy.

Common algorithms for js coding interviews The idea behind this repo, is just practicing common algorithms.

Can i run it? Yes, you can run it. just clone the repo, install jest globally using npm install -g jest and run it using jest

the command above will run all the tests in the repo. but you can also run specific tests by passing the test name as an argument. for example jest fib --watch

Do you want to send any algorithm? PRs are welcome. Thanks for reading.