## Round Price Problem

Problem Statement: When customers book an Airbnb the total price, which includes base price + service fee + cleaning fee. … Read more

Problem Statement: When customers book an Airbnb the total price, which includes base price + service fee + cleaning fee. … Read more

Objective: Given a number with N digits, write a program to get the smallest number possible after removing k digits … Read more

Objective: Given a Stack, write an algorithm to reverse the stack. Example: Original Stack: [14, 9, 67, 91, 101, 25] … Read more

The algorithm of kMeans is an unsupervised learning algorithm for clustering a set of items into groups. Given a set … Read more

Objective: Design and Implement a data structure Least Recently Used (LRU) Cache. Earlier we had seen Least Recently Used (LRU) … Read more

Objective: Design and Implement a data structure Least Recently Used (LRU) Cache. Least Recently Used (LRU) Cache: You have given … Read more

Objective: Given a matrix (NxN) which represents the buildings in community. You are in a building and you need a … Read more

Max Flow Problem- Maximum flow problems find a feasible flow through a single-source, single-sink flow network that is maximum. This problem is useful … Read more

Earlier we have seen what Dijkstra algorithm is and how it works. In this article, we will see its implementation … Read more

Objective: Given an array of integers A[] which is sorted in two parts (both parts are individually sorted), find no … Read more

Earlier we have seen what Dijkstra’s algorithm is and how it works. In this article, we will see its implementation … Read more

Earlier we have seen the basics of Dijkstra algorithm. In this article, we will see its implementation using the adjacency … Read more

What is Dijkstra’s algorithm? Dijkstra algorithm is a greedy algorithm. It finds a shortest path tree for a weighted undirected graph. This means it finds … Read more

What is Kruskal Algorithm? Kruskal’s algorithm for finding the Minimum Spanning Tree(MST), which finds an edge of the least possible … Read more