1) 0:00 Explaining the problem out loud
2) 1:10 Algorithm walkthrough
3) 5:15 Coding it up
4) 14:40 Time complexity
TC :O(n)
SC :O(1)
where n is the no of digits in the given no
https://github.com/Sunchit/Coding-Decoded/blob/master/December2020/NextGreaterElementIII.java
Complete December Playlist: https://www.youtube.com/playlist?list=PLEI-q7w3s9gQIB_urBmMV04f_NBelXJEP
Channel link: https://www.youtube.com/channel/UCcSu42m7xhCumIKkKupnpRA
Download
0 formats
No download links available.
Next Greater Element III | Leetcode December Challenge Day 23 | Leetcode live coding session 556 | NatokHD