Find subarray with given sum Given an unsorted array of nonnegative integers, find a continuous
Tag: Array-programs
Program to find largest element in an arrayProgram to find largest element in an array
Program to find largest element in an array Given an array, find the largest element
Find the Missing NumberFind the Missing Number
Find the Missing Number You are given a list of n-1 integers and these integers
Maximum and minimum of an array using minimum number of comparisonsMaximum and minimum of an array using minimum number of comparisons
Maximum and minimum of an array using minimum number of comparisons Write a C
K’th Smallest/Largest Element in Unsorted ArrayK’th Smallest/Largest Element in Unsorted Array
K’th Smallest/Largest Element in Unsorted Array Given an array and a number k where
Given an array A[] and a number x, check for pair in A[] with sum as xGiven an array A[] and a number x, check for pair in A[] with sum as x
Given an array A[] and a number x, check for pair in A[] with sum
Program for array rotationProgram for array rotation
Program for array rotation Write a function rotate(ar[], d, n) that rotates arr[] of size
Largest Sum Contiguous SubarrayLargest Sum Contiguous Subarray
Largest Sum Contiguous Subarray Write an efficient program to find the sum of contiguous subarray
Write a program to reverse an array or stringWrite a program to reverse an array or string
Program to reverse an array or string Given an array (or string), the task is