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

# Category: Arrays

Practice problems related to 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

## Sorted Array to BST

You are given an array which is sorted in increasing order, you need to convert that array into a Binary Search Tree. Note that the

## 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