#450dsa
Read more stories on Hashnode
Articles with this tag
Minimize the Heights II Given an array arr[] denoting heights of N towers and a positive integer K. For each tower, you must perform exactly one of...
Kadane's Algorithm Given an array Arr[] of N integers. Find the contiguous sub-array(containing at least one number) which has the maximum sum and...
Cyclically rotate an array by one Given an array, rotate the array by one position in clock-wise direction. Example 1: Input: N = 5 A[] = {1, 2, 3,...
Move all negative elements to end Given an unsorted array arr[] of size n having both negative and positive integers. The task is place all negative...
Kth smallest element Given an array arr[] and an integer K where K is smaller than size of array, the task is to find the Kth smallest element in the...
Find minimum and maximum element in an array Given an array A of size N of integers. Your task is to find the minimum and maximum elements in the...