January 13, 2021

Browse All

Pair with a given sume

Question 1: Find Pair With Given Sum in an Array

Question 1 Given an array of integers, you must find a pair within the array that sums up to a ...
Read More
Check for subarray with zero sum

Question 2: Check if Subarray with Zero Sum Exists

Question 2 You are given an integer array. You need to check if the array contains sub-array with zero sum ...
Read More
Sort a Binary array

Question 3 – Sort a Binary Array in Linear Time

Question 3 Given an unsorted binary array, you need to sort it in linear time - O(n) and constant space ...
Read More
Find duplicate element in an array

Question 4: Find Duplicate Element in Array

Question 4 You are given an array of size n. One of the elements of the array appears twice in ...
Read More
Find the largest sub-array

Question 5 – Find Largest Sub-array

Question 5 You are given an unsorted array of integers. You  need to find the largest sub-array formed by consecutive ...
Read More

Binary Search Tree

We would cover the Binary Search Tree implementation in Java under the following: Introduction to Binary Search Tree Java Program ...
Read More