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 to master the art of Coding Interviews, join our online/offline course, click here…

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…

System Design of Centralized Logging System

In the following video, we discuss the design of a centralized logging system: Join our online (live) classes and master the System Design Interviews: 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 can either go directly or take breaks in between. Given the cost of travel for each pair of stations, find the minimum cost of travel.

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 – Reset a particular bit. toggleBit – Toggle a particular bit. getBit – return the value (0 or 1) stored at a particular bit position.