## Find The Minimum time difference

Minimum time difference Given a list of 24-hour clock time points in “HH:MM” format. Write a program to find the … Read more

## Departure and Destination Cities in a given itinerary

You are on a business trip and traveling from one city to another. you have a stack of unsorted flight … Read more

## Given an array, rank its elements

Given an array of numbers, write a program to rank the array elements. Example: Given array: [22, 11, 44, 66, … Read more

## Maximum Depth of Valid Nested Parentheses in an arithmetic expression

Given an arithmetic expression which operators, operands and brackets. You need to find out the maximum depth of valid nested … Read more

## Minimum Increments to make all array elements unique

Given a sorted array of integers, Write an algorithm to make all array elements distinct or unique by doing minimum … Read more

## Maximum Surpasser in the given array

The “surpasser” of an element in an array is defined as the number of elements that are to the “right” … Read more

## Maximum CPU Load Problem in a jobs list

Given a list of n Jobs with start time, end time and CPU load when it is active at any … Read more

## Check If Student is eligible for an Attendance Reward

In school a student gets rewarded if he has an attendance record without being absent for more than once or … Read more

## Maximum overlaps in a given list of time intervals

Interval is defined as [start, end]- the start of the interval to the end of the interval. Given the list … Read more

## Remove Duplicates in a given Sorted Array

Given a sorted array of integers, write a program to remove duplicates in-place by modifying the given array such that … Read more

## Replace Elements with Greatest Element on Right

Given an array of numbers nums[], write ment a function to replace each element of the array with the greatest … Read more

## Count number of pairs in an array with sum = K

Given an array of integers and number K, write a program to find the number of pairs which has sum … Read more

## Count similar words in a given array

Given an array of strings, write a program to count all the similar words.  Similar words: Two words are similar … Read more

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

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