You have been given a random integer array/list(ARR) of size N. Write a function that rotates the given array/list by D elements(towards the left).

TITLE :- Rotate array PROBLEM :- You have been given a random integer array/list(ARR) of size N. Write a function that rotates the given arr...
Read More

Given a random integer array and a number x. Find and print the triplets of elements in the array which sum to x. While printing a triplet, print the smallest element first. That is, if a valid triplet is (6, 5, 10) print "5 6 10". There is no constraint that out of 5 triplets which have to be printed on 1st line. You can print triplets in any order, just be careful about the order of elements in a triplet.

TITLE :- Triplet sum PROBLEM :- Given a random integer array and a number x. Find and print the triplets of elements in the array which sum ...
Read More

Given a random integer array A and a number x. Find and print the pair of elements in the array which sum to x.

TITLE :- Pair sum in array PROBLEM :- Given a random integer array A and a number x. Find and print the pair of elements in the array which ...
Read More

Given two random integer arrays, print their intersection. That is, print all the elements that are present in both the given arrays. Input arrays can contain duplicate elements.

TITLE :- Print Array intersection PROBLEM :- Given two random integer arrays, print their intersection. That is, print all the elements that...
Read More

Given an array of integers of size n which contains numbers from 0 to n - 2. Each number is present at least once. That is, if n = 5, numbers from 0 to 3 is present in the given array at least once and one number is present twice. You need to find and return that duplicate number present in the array.

TITLE :- Duplicate in array PROBLEM :- Given an array of integers of size n which contains numbers from 0 to n - 2. Each number is present a...
Read More

Given an integer array of size 2N + 1. In this given array, N numbers are present twice and one number is present only once in the array.

TITLE :- Find the Unique Element PROBLEM :- Given an integer array of size 2N + 1. In this given array, N numbers are present twice and one ...
Read More