NITIN23329 / LeetCode

This repo contains several problems solved at leetcode
MIT License
1 stars 0 forks source link

reduce time complexity from O(n^2) to O(n) #10

Closed NITIN23329 closed 3 years ago

NITIN23329 commented 3 years ago

https://github.com/NITIN23329/LeetCode/blob/ded6a20d71a5fa6494a9c0fb43fcdc5e878be51b/Stack/LongestWellPerformingInterval.java#L1

NITIN23329 commented 3 years ago

Solved 👍 👍 https://github.com/NITIN23329/LeetCode/blob/8e2fd7192daf12ae29b29f64ea245c15ea1bc135/Stack/LongestWellPerformingInterval.java#L18