PHP
Daily Leetcode Solution
Login To Post Your Comment
66 comments
Caleb Akeju
10 hours ago
I don't understand how the inner select works with the outer one. embarassed
Maybe I will watch some videos on inner selects but this is a hard problem for a reason.
Caleb Akeju
1 day ago
I initially though a search would work.
The interesting thing about this is the for and while loop, they look for the next greater element in the array store them as key/value pair. As in, lesser/greater according to the arrangement of the numbers in the array.
I hope I will be able to understand when next I go through this, that is if I ever go through this comment again.
Load More...