Problems
Contest
Discuss
Interview
Online Interview
Assessment
Store
Redeem
Premium
For you
For you
Create
Most Votes
All Time
Newest
No search result
Create
Simple way of approaching the problem using memorization
curious_being
39
explore
July LeetCoding Challenge 2021
Make two arrays :
to store the max from the left side ownward
to store the the min element from the right side to the left side
Now read the question carefully and try to find the realtion between the both for each index.
0
0
Comments (0)
Sort by:
Best
Comment
Explore
Download App
Support
Terms
Privacy Policy
More
Copyright © 2026 LeetCode
United States