Can I push_front a char to string in O(1) or O(logn)?

Правка en2, от YukatouArimotou, 2024-08-10 00:31:37

I'm trying to do a problem and i have an idea, but it need to push_front a char to string in O(1)! So...can you tell me how to do it please @@

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский YukatouArimotou 2024-08-10 01:16:14 66
en3 Английский YukatouArimotou 2024-08-10 00:52:19 2 Tiny change: 'in O(1)!\nSo...can' -> 'in O(1)!\n\nSo...can'
en2 Английский YukatouArimotou 2024-08-10 00:31:37 16 Tiny change: 'h_front a string in' -> 'h_front a char to string in'
en1 Английский YukatouArimotou 2024-08-10 00:30:01 180 Initial revision (published)