You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution that is provided in the video https://www.youtube.com/watch?v=rW4vm0-DLYc uses a stack operation to implement the top() method. My java translation has been modified to only use queue operations, using the same algorithm as the pop() method uses.
0 commit comments