## 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

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

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

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

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

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

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

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

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

Given two versions of a software, write an algorithm to find out which version is the latest. Example: Version A: … Read more

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

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

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

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

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

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