twowaits / SDE-Interview-Questions

Most comprehensive list :clipboard: of tech interview questions :blue_book: of companies scraped from Geeksforgeeks, CareerCup and Glassdoor.
MIT License
7.21k stars 2.16k forks source link

New Google Coding Round Question #142

Closed unsaid-u closed 3 years ago

unsaid-u commented 3 years ago

Counting Subarrays You are given an array that contians N positive integers a1,a2...aN, where all ai are pairwise distiinct. For each ai, you are required to determine the number of subarrys such that the minimum value of the subarray is ai. A subarray is a contigious set of elements of an array

I would like to add this question Please assign this issue to me. Label : Hacktoberfest2020

rishabh115 commented 3 years ago

Counting Subarrays You are given an array that contians N positive integers a1,a2...aN, where all ai are pairwise distiinct. For each ai, you are required to determine the number of subarrys such that the minimum value of the subarray is ai. A subarray is a contigious set of elements of an array

I would like to add this question Please assign this issue to me. Label : Hacktoberfest2020

Please read the contributing guidelines and hacktoberfest rules.