## Duplicate even elements in an array

Given an array of numbers, write a program to duplicate the even numbers and return the new array. Example: Input: … Read more

## Find the number of pairs with odd XOR

Given an array of integers, write a program to find the number of pairs for which the XOR is an … 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

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

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

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

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

## Given an array, count the number of pairs with a given sum.

Objective: Given an array of integers, write a program to count all the pairs with the given sum. Example: Given … Read more

## Two Sum Problem

Objective: Given an array of integers, and k. Write a program to find indexes of two elements in an array … Read more

## Find if any two intervals overlap in given intervals

Objective: Interval is defined as [start, end]- the start of an interval to the end of the interval. Given a … Read more

## Find all subsets of size K from a given number N (1 to N)

Objective: Given two integers N and K, Write an algorithm to find subsets of size K from the numbers 1 … Read more