divyanshuGupta's blog

By divyanshuGupta, history, 4 years ago, In English

Is there any massive time complexity difference between erasing a value from the set using -- set_name.erase(iterator) and set_name.erase(set_name.find(iterator)) when we are sure that iterator refers to a value present in the set..i am asking this because this shows time limit exceeded but this one does not shows any time limit exceeded ...please help

Full text and comments »

  • Vote: I like it
  • +5
  • Vote: I do not like it

By divyanshuGupta, history, 4 years ago, In English

can anyone tell me why does it show that reference is ambiguous on custom invocation of codeforces although it works fine on sublime and when i just change the name of array it works fine .. ... code link...

...thank you

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it