Learning Stacks In JavaScript
My journey learning JavaScript Stacks and Algorithms

Search for a command to run...
Articles tagged with #javascript
My journey learning JavaScript Stacks and Algorithms

What is a spiral matrix? The Spiral Matrix problem takes a 2-Dimensional array of N-rows and M-columns as an input, and prints the elements of this matrix in spiral order. The spiral begins at the top left corner of the input matrix, and prints the e...

Instructions Write a function that accepts a positive number N. The function should console log a pyramid shape with N levels using the # character. Make sure the pyramid has spaces on both the left and right hand sides // Examples pyramid(1) // ...

Instructions Write a function that accepts a string. The function should capitalize the first letter of each word in the string then return the capitalized string. // Examples capitalize('a short sentence') // 'A Short Sentence' capitalize('not like...

Instructions Check to see if two provided strings are anagrams of each other. One string is an anagram of another if it uses the same characters in the same quantity. Only consider characters, not spaces or punctuation. Consider capital letters to ...

Instructions Given the array and chunk size, divide the array into multiple subarrays where each is of similar length //EXAMPLES chunk([1, 2, 3, 4], 2) --> [[ 1, 2], [3, 4]] chunk([1, 2, 3, 4, 5], 2) --> [[ 1, 2], [3, 4], [5]] chunk([1, 2, 3, 4, 5, 6...
