Блог пользователя divyanshuGupta

Автор divyanshuGupta, история, 4 года назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится

Автор divyanshuGupta, история, 4 года назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится