Skip to content

agriboz/javascript-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javascript-algorithms

Testing javascript algorithms

Run Test

Open your favorite Terminal and run this command.

$ npm test

Sum

Recursive Staircase Problem

There are n stairs, a person standing at the bottom wants to reach the top. The person can climb either 1 stair or 2 stairs at a time. Count the number of ways, the person can reach the top.

Sum of the Smallest Numbers

Given an array of numbers, you should compute the sum of the two smallest number values. You can assume that the array only contains numbers, is never undefined and the array has min length of 2.

Check if the amount of X and O in a string is the same

Given an input string, you should check if the string contains the same amount of 'x' and 'o'. The case doesn't matter - if the amount is equal, return a true otherwise return false.

About

Learning javascript algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published