Advanced Topics in JavaScriptScope, closures, sorting algorithms, and more
Questions on closures
Closures are an important topic to understand when learning JavaScript. Here are a few common closure questions with solutions.
10 common JavaScript interview questions
Some common interview questions with topics such as decimal numbers, scope, private variables, and more.
Map, reduce, and filter - functional programming
Introduction to functional programming methods in JavaScript.
Implement bubble sort in JavaScript
Code for implementing the simple but slow sorting algorithm, bubble sort, in JavaScript.
Dutch national flag sorting problem in JavaScript
Question and solution for sorting an array of 0's, 1's, and 2's in place and in linear time.
Find duplicates in an array using a hash table
A common interview question where your goal is to find all duplicates in an array in linear time.
Two sum problem
A popular interview question that requires you to determine if two numbers in an array sum to a specific value. A solution can be written that runs in linear time.
Arrays and Lists
Improve your algorithms knowledge with this course on sorting, linked lists, hash tables, queues, and more.
Calculator
For this challenge you will be evaluating a mathematical expression within a string.
1017 solutions
Solution
Pattern Chaser
For this challenge you will be given a string and you will have to determine whether some sort of pattern exists.
582 solutions
Solution
Kaprekars Constant
For this challenge you will determine when a specific sequence terminates.
74 solutions
Solution
Step Walking
For this challenge you will determine how many different ways you can walk up a flight of stairs.
63 solutions
Solution
Gas Station
For this challenge you will be determining whether a car can get around a route with a limited amount of gas.
497 solutions
Solution
Switch Sort
For this challenge you will determine how quickly you can sort an array based on a specific sorting technique.
247 solutions
Solution
Square Figures
For this challenge you will be determining squares of certain numbers.
94 solutions
Solution
Array Jumping
For this challenge you will determine how many times you can jump around within an array.
45 solutions
Solution
Roman Numeral Reduction
For this challenge you will be reducing a string of roman numerals.
55 solutions
Solution
Parallel Sums
For this challenge you will determine how to properly split an array into two sets.
77 solutions
Solution
Approaching Fibonacci
This challenge will require knowledge of calculating the Fibonacci numbers.
87 solutions
Solution