## Maximum distance from the nearest person.

Given a bench with n seats and few people sitting, You are going to sit on a vacant seat such … Read more

## Sort 0, 1, 2 in an array – Part 2

Given an array of numbers, that consists only of three types of integers, which are 0, 1, and 2. Write … Read more

## Design a data structure for Candidate Voting Problem

Given candidates standing for an election, design a data structure that can support the following modules –  1. voteCandidate (candidateName) … Read more

## Find the Number of Contiguous Parking Areas

Problem: Given a building with parking slots. If a spot is free then it is marked by 1 and if … Read more

## Design data structure for players and ranks

Given a list of player names and their scores, design a data structure that can support following modules in optimal … Read more

## Minimum Deletions to make the occurrence of each character unique.

Objective: Given a string, your task is to delete the minimum number of characters in the string so that the … Read more

## Valid Pickup and Delivery options

Given N orders, each order consists of pickup and delivery services, means delivery of a particular service will after the … Read more

## Print Top 10 videos from List

Given a list L of video names and their watch rates, write a function that will return the videos with … Read more

## The largest number can be formed from the given number

Given a number write an algorithm to construct the largest number possible by using the digits of given number. Given … Read more

## Print all nested directories and files in a given directory – Recursion

Given a source directory, write a recursive program to print all the nested directories and files in the source directory. … Read more

## Maximum meetings in one room

You have one meeting room at your company. There are N meeting needs to take place. Every meeting has a … Read more

## The number of cycles in a given array of integers.

Objective: Given an array of size N which contains integers from range 0 to N-1. (No duplicates). Write a program … Read more

## Check if given sudoku is valid or not

Problem: Given a filled sudoku, write a program to check if sudoku is valid or following all of its rules. … Read more

## Construct the Largest number from the given digits

Given a set of digits, write an algorithm to construct the largest number possible by appending the given digits. Example: … Read more