You are given a 2D grid of 1’s and 0’s where 1’s denotes the land and 0’s denote the water. You need to return the
Tag: Arrays
Product of Array except self
You are given an array containing n integers (n>1), you need to return an output array such that output [i] is equal to the product
Find Pivot Index
You are given an array of integers, you need to return the pivot index of the array if it exists, else return -1. Pivot index
Search in Rotated Sorted Array
You are given an integer array, sorted in ascending order and a target integer. Suppose that the array is rotated at some pivot point that
Minimum unsorted subarray.
You are given an unsorted array, you need to find the minimum length of subarray sorting which the whole array becomes sorted. Return the starting
K’th smallest element in unordered list
You are given an unordered list of integers, you need to find the K’th smallest integer in that list. Sample Input: Arr = { 7,