Problem Statement: Given an array and a sum k, we need to print the length of the longest subarray that

Continue reading# Tag: DSA Self Paced

## Count Subarray sum Equals K

Problem Statement: Given an array of integers and an integer k, return the total number of subarrays whose sum equals

Continue reading## Binary Tree Representation in Java

A Binary Tree in Java is represented as pointers connecting to each other in a hierarchical manner where a node

Continue reading## Binary Tree Representation in C++

A Binary Tree in C++ is represented as pointers connecting to each other in a hierarchical manner where a node

Continue reading## Rearrange Array Elements by Sign

Variety-1 Problem Statement: There’s an array ‘A’ of size ‘N’ with an equal number of positive and negative elements. Without

Continue reading## Recursive Bubble Sort Algorithm

Problem Statement: Given an array of N integers, write a program to implement the Recursive Bubble Sort algorithm. Examples: Example

Continue reading## Recursive Insertion Sort Algorithm

Problem Statement: Given an array of N integers, write a program to implement the Recursive Insertion Sort algorithm. Examples: Example

Continue reading## Right rotate an array by D places

Problem Statement: Given an array of N integers and an integer D, right rotate the array by D place. Pre-requisite:

Continue reading## Left rotate an array by D places

Problem Statement: Given an array of N integers and an integer D, left rotate the array by D place. Pre-requisite:

Continue reading## Find the missing number in an array

Problem Statement: Given an integer N and an array of size N-1 containing N-1 numbers between 1 to N. Find

Continue reading