Higher order functions

Higher order functions

I recently started learning JavaScript and I tumbled upon a concept called Higher Order Functions (HOF). There are quite a lot of documents in the internet that explains what an HOF is, and here is m...

Binary Search

Binary Search

Before we get into the syntax and logic of binary search algorithm, let’s ask ourselves this questi...

Game Show Host Problem

Game Show Host Problem

The game show host problem which is also called as ‘Monty Hall Problem’ is one of the classic math ...

Ternary Operators

Ternary Operators

The ternary operator is basically another way to implement the ```if-else``` statement. Now, if it’...