Sudhanshu Jha“The Only Way is Up” Programming ProblemA sequence, ar[], is called a ‘rising sequence’ if for each i > 0, ar; > ar:1May 2May 2
Sudhanshu JhaMaximum Subarray(Kadane’s Algorithm)Kadane’s Algorithm is a popular and efficient technique used to find the maximum sum of a contiguous subarray within a given array of…Apr 25Apr 25
Sudhanshu JhaTriplet Sum in Array (3sum)You are given an array and a target value. Your task is to determine if there exists a triplet that sums to the target value. If there…Apr 24Apr 24
Sudhanshu JhaDutch National Flag AlgorithmProblem Statement: Given an array consisting of only 0s, 1s, and 2s. Write a program to in-place sort the array without using inbuilt sort…Apr 24Apr 24
Sudhanshu JhaSegregate 0s and 1s in an ArrayProblem Statement: Given an array of length N consisting of only 0s and 1s in random order. Modify the array to segregate 0s on the left…Apr 24Apr 24
Sudhanshu JhaJava Program to left/right rotate the elements of an arrayGiven an unsorted array arr [] of size N. Rotate the array to the left (counter-clockwise direction) by D steps, where D is a positive…Apr 21Apr 21