What's the time complexity of this code?

Правка en4, от wiaderko69, 2025-08-04 20:18:55

Can someone tell me what's the time complexity of this code? I thought it's O(N^2) because of vector erase but it gets AC 332397335.

Code

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский wiaderko69 2025-08-04 20:18:55 1 (published)
en3 Английский wiaderko69 2025-08-04 20:17:59 164 Tiny change: 't gets AC for [submissi' -> 't gets AC [submissi'
en2 Английский wiaderko69 2025-08-04 20:13:22 1080
en1 Английский wiaderko69 2025-08-04 20:12:52 85 Initial revision (saved to drafts)