Minimum swaps to make sequences increasing |

Sum of nearest smaller and greater number |

Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i |

Contiguous Array |

Maximum Length of Repeated Subarray |

Count pair with Given Sum |

Maximum difference between frequency of two elements such that element having greater frequency is also greater |

All Unique Triplets that Sum up to a Given Value |

Longest Subarray Having Count of 1s One More than Count of 0s |

Maximum Array from Two given Arrays Keeping Order Same |

Count Subarrays with Same Even and Odd Elements |

Rearrange an Array Such that arr[i] is equal to i |

Segregate 0s and 1s in an Array |

Maximum Number of Chocolates to be Distributed Equally Among k Students |

Maximum Consecutive Numbers Present in an Array |

Move all Negative Numbers to Beginning and Positive to End with Constant Extra Space |

Queries for Number of Distinct Elements in a Subarray |

Queries on Probability of Even or Odd Number in given Ranges |

Total Numbers With no Repeated Digits in a Range |

Range Minimum Query (Square Root Decomposition and Sparse Table) |

Range Sum Query using Sparse Table |

Count and Toggle Queries on a Binary Array |

Queries for Decimal Values of Subarrays of a Binary Array |

Maximize Elements Using Another Array |

Find whether an array is subset of another array |

Print all triplets in sorted array that form AP |

Find number of pairs in an array such that their XOR is 0 |

Given an Array of Pairs Find all Symmetric Pairs in it |

Find all triplets with zero sum |

Generate all possible sorted arrays from alternate elements of two given sorted arrays |

Array Queries for multiply replacements and product |

Check in binary array the number represented by a subarray is odd or even |

Queries for counts of array elements with values in given range |

Products of ranges in an array |

Palindrome Permutation |

Sort an array according to the order defined by another array |

Shuffle 2n integers as a1-b1-a2-b2-a3-b3-..bn without using extra space |

Distinct adjacent elements in an array |

Construction of Longest Increasing Subsequence (N log N) |

Maximize sum of consecutive differences in a circular array |

Three way partitioning of an array around a given range |

Check if X can give change to every person in the Queue |

Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ |

Maximum length subsequence with difference between adjacent elements as either 0 or 1 |

Replace two consecutive equal values with one greater |

Find a sorted subsequence of size 3 in linear time |

Maximum Product Subarray |

Convert array into Zig-Zag fashion |

Rearrange array such that even index elements are smaller and odd index elements are greater |

Segregate even and odd numbers |

Find Minimum In Rotated Sorted Array |

Move all negative elements to end in order with extra space allowed |

Rearrange array such that even positioned are greater than odd |

Double the first element and move zero to end |

Remove duplicates from sorted array |

Product of array except self |

First missing positive |

Find the minimum distance between two numbers |

Count pairs from two sorted arrays whose sum is equal to a given value x |

Find the subarray with least average |

Find the smallest positive integer value that cannot be represented as sum of any subset of a given array |

Find minimum number of merge operations to make an array palindrome |

Minimize the maximum difference between the heights |

Find maximum average subarray of k length |

Find minimum difference between any two elements |

Count minimum steps to get the given desired array |

Dividing Array into Pairs With Sum Divisible by K |

Count Distinct Elements in Every Window of Size K |

Count Subsets Having Distinct Even Numbers |

Find Three Element From Different Three Arrays Such That a + b + c = sum |

Longest Increasing Subsequence |

Count Pairs Whose Products Exist in Array |

Merge Overlapping Intervals |

Median of Two Sorted Arrays |

Maximum Product Subarray |

Find Maximum of Minimum for Every Window Size in a Given Array |

Longest Common Prefix Using Word by Word Matching |

Minimum Size Subarray Sum |

Intersection of Two Arrays |

Search an Element in Sorted Rotated Array |

Maximum Product Subarray |

3 Sum |

Find The Duplicate Number |

Maximum Sum of 3 Non-Overlapping Subarrays |

Minimum Index Sum of Two Lists |

Split Array Into Consecutive Subsequences |

Find the Duplicate Element |

Find the Only Repetitive Element Between 1 to N-1 |

Trapping Rain Water |

Finding K closest element |

Jump Game |

Combination Sum |

Search in Sorted Rotated Array |

Maximum Subarray |

Sliding Window Maximum |

Delete And Earn |

Length of Longest Fibonacci Subsequence |

Merging Intervals |

First Bad Version |

Peak Index in a Mountain Array |

4Sum |

Create Maximum Number |

Degree of an array |

Queue Reconstruction by Height |

Search Insert Position |

Find Peak Element |

Valid Triangle Number |

Power of Two |

Maximum size subarray sum equals k |

Next greater element |

Guess The Word |

Missing Number |

Merge Sorted Array |

Partition Equal Subset Sum |

Last Stone Weight |

Sort Colors |

Rotate Array |

Subarray Sum Equals k |

Infix to Postfix |

Circular Queue |

Given a sorted array and a number x, find the pair in array whose sum is closest to x |

Find the subarray whose sum is equal to a given number X |

Arrange Even and Odd number such that Odd comes after Even |

Minimum number of Merge Operations to make an Array Palindrome |

Form Minimum Number from Given Sequence of D’s and I’s |

Longest Span with same Sum in two Binary Arrays II |

Find the Subarray of given length with Least Average |

Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized |

Merge K Sorted Arrays and Print Sorted Output |

Find the Minimum Element in a Sorted and Rotated Array |

Find the point where a monotonically increasing function becomes positive first time |

Print all Possible Combinations of R Elements in a given Array of size N |

Sort Elements by Frequency II |

Stock Buy Sell to Maximize Profit |

Merge Overlapping Intervals II |

Maximum Subarray Sum using Divide and Conquer |

Pancake Sorting Problem |

Pancake Sorting |

Arrange given Numbers to Form the Biggest Number II |

Iterative Implementation of Quick Sort |

Shuffle a given Array |

Find the Row with Maximum Number of 1’s |

Sorting a K Sorted Array |

Maximum Product Subarray II |

Largest Subarray with Equal Number of 0’s and 1’s |

Find the two Numbers with Odd Occurrences in an Unsorted Array |

Maximum Sum Increasing Subsequence |

Implement Two Stacks in an Array |

Number of Smaller Elements on Right Side |

Increasing Subsequence of Length three with Maximum Product |

Elements Appear more than N/K times in Array |

Find the Peak Element from an Array |

Rearrange Positive and Negative Numbers Alternatively in Array |

Find the Maximum Repeating Number in Array |

Tug of War |

First Circular Tour to Visit all the Petrol Bunks |

Count Possible Triangles |

Maximum Circular Subarray Sum |

Four Elements that Sum to Given |

Maximum Length of Chain Pairs |

Find Pair with Given Difference |

Partition Problem |

The Celebrity Problem |

Find a Sorted Subsequence of size 3 |

Subarray with Given Sum |

Maximum Element in an Array which is Increasing and then Decreasing |

Count Minimum Steps to Get the given Array |

Find the Lost Element From a Duplicated Array |

Rearrange given Array in Maximum Minimum Form |

Subarray and Subsequence |

Merge Two Sorted Arrays |

Count of Triplets With Sum Less than Given Value |

Reorder Array Using Given Indexes |

Next Greater Element in an Array |

Merging Two Sorted Arrays |

Reorder an Array According to the Given Indexes |

Find a Fixed Point in a Given Array |

Find Element Using Binary Search in Sorted Array |

Find Triplet in Array With a Given Sum |

Check if the Elements of an Array are Consecutive |

Find Duplicates in an Array in Most Efficient Way |

Sort 0s 1s and 2s in an Array |

Find Leaders in an Array |

Smallest Positive Number Missing in an Unsorted Array |

Find K Length Subarray of Maximum Average |

Find Pythagorean Triplets from Array |

Move All the Zeros to the End of the Given Array |

Find Minimum Distance Between Two Numbers in an Array |

Rotate Image by 90 degrees |

Count Number of Occurrences in a Sorted Array |

Maximum Sum of Non Consecutive Elements |

Find Smallest Missing Number in a Sorted Array |

First Repeating Element |

Multiplication of Previous and Next |

A Product Array Puzzle |

Find All Pairs With a Given Difference |

Find all Common Elements in Given Three Sorted Arrays |

Find the first Repeating Number in a Given Array |

Print All Distinct Elements of the Array |

Maximum difference between two elements such as larger element comes after smaller |

Majority Element |

Find the First and Second Smallest Elements |

Find the Number Occurring Odd Number of Times in an Array |

Sort Elements by Frequency of Occurrences |

Find the Missing Number |

Find Nearest Greater and Smaller Element |

Largest Sum Contiguous Subarray |

Reverse an Array |

Find a Triplet That Sum to a Given Value |

Find elements pair from array whose sum equal to number |