2487. Remove Nodes From Linked List #2369
Unanswered
mah-shamim
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Topics:
Linked List,Stack,Recursion,Monotonic Stack,Weekly Contest 321You are given the
headof a linked list.Remove every node which has a node with a greater value anywhere to the right side of it.
Return the
headof the modified linked list.Example 1:
Example 2:
Constraints:
[1, 105].1 <= Node.val <= 105Hint:
Beta Was this translation helpful? Give feedback.
All reactions