Fitting Shelves Problem

Given the length of a wall w and infinite shelves of two lengths small and large (large > small). Find the optimal solution to put […]

Print all Subsequences of an Array

Given an array of integers, Print all possible subsequences of that array.

Coin Change Problem. Greedy Solution

Find min number of currency notes that we need to give for a given change. The following Video discusses the Greedy solution. If you want […]

Introducing Bloom filters

The following Video introduces Bloom Filters. To master the System Design Interview, Join our online (live) classes. Click here for more details…

Find minimum cost to travel to the destination railways station

There are N stations on a railway track. You are at the first station and you want to go to the final railway station. You […]

Tricks to compute the time and space complexities. Part-2 (Binary Tree)

Learn the tips and tricks to find the time and space complexities of Binary tree algorithms:

Tricks to compute the time and space complexities. Part-1 (Array)

The following video talks about the general method to find the time and space complexities of your code, esp. during the interview. This is Part-1 […]

Bitwise Operations: Working on individual bits

Write code to perform the basic operations on individual bits of a number (rather than the entire number): setBit – Set a particular bit. resetBit […]

Find kth largest element in running stream of numbers

Given a running stream of numbers and a positive number k. Write code to print the kth largest element at any time:

Protected: live classes

There is no excerpt because this is a protected post.