We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The issue is with "pop", it should pop the samllest element from the set but instead it is removing the last element from the set. I just want to understand why it is happening? here is my code
Set .discard(), .remove() & .pop()
You are viewing a single comment's thread. Return to all comments →
The issue is with "pop", it should pop the samllest element from the set but instead it is removing the last element from the set. I just want to understand why it is happening? here is my code