496. Next Greater Element I

mono stack + hashmap

T: O(n+m), n is num1, m is nums2

T: O(n+m)

Last updated

Was this helpful?