Adityaxv's blog

By Adityaxv, 19 months ago, In English

My code gives runtime error for some testcases of this Problem.

My Solution

But when I add integer 0, n times in the multiset at the beginning, my code gets accepted. Why?

Added Part
  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
19 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

check if element exists before deleting