You are viewing a single comment's thread. Return to all comments →
in condition 3: when I use print(items[-1]), it passes all the test cases. But when I use print(items.pop()), it fails most of the tests.
so what's the difference here? it's confusing.
Maximum Element
You are viewing a single comment's thread. Return to all comments →
in condition 3: when I use print(items[-1]), it passes all the test cases. But when I use print(items.pop()), it fails most of the tests.
so what's the difference here? it's confusing.