SarthakKeshari / Java-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
47 stars 98 forks source link

Number of Subarrays with Bounded Maximum #344

Closed nik132-eng closed 3 years ago

nik132-eng commented 3 years ago

Enter your question -

Given an integer array nums and two integers left and right, return the number of contiguous non-empty subarrays such that the value of the maximum array element in that subarray is in the range [left, right].

The test cases are generated so that the answer will fit in a 32-bit integer.

Enter link to the question(if question belongs to any online platform) -

https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/

Tags for the question(eg - Array, Basic, Stack, etc.) -

Array

nik132-eng commented 3 years ago

Can you please assign me this issue for hacktoberfest

SarthakKeshari commented 3 years ago

@nik132-eng, Kindly add your solution to "leetcode" folder. Deadline - 09/10/2021

nik132-eng commented 3 years ago

done sir, can you please merge it?