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

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

## Print all subarrays using recursion

Given an array, write a recursive program to print all the subarrays. See the example below – Example:  Input [] … Read more

## Find Lexicographically smallest or largest substring of size k

Given a string and number k, write a program to find the lexicographically smallest substring of size k. Note: This … Read more

## Calculate (x^y)%z without using pow() function

Problem: Given integers x, y, and z. Write a program to calculate (x^y)%z without pow() function. Example: x = 2, … Read more

## Efficient Robot Problem – Find Minimum Trips

Problem: There is N number of items that need to be transferred from one place to another by a robot. … Read more

## Job Sequencing algorithm – Java

Objective: You are given n jobs along with the deadline and profit for each job. Your task is to write … Read more