Problem Statement: Given an array and a sum k, we need to print the length of the longest subarray that
Continue readingTag: Strivers A2ZDSA Course
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 readingBinary 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 readingBinary 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 readingRearrange 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 readingRecursive Bubble Sort Algorithm
Problem Statement: Given an array of N integers, write a program to implement the Recursive Bubble Sort algorithm. Examples: Example
Continue readingRecursive Insertion Sort Algorithm
Problem Statement: Given an array of N integers, write a program to implement the Recursive Insertion Sort algorithm. Examples: Example
Continue readingRight 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 readingLeft 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 readingFind 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