A=B
Otillräckligt med betyg
Remove last abc
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Taggar: level
Filstorlek
Lades upp
120.547 KB
10 aug, 2022 @ 14:34
1 ändringsnotis ( visa )

Abonnera för att ladda ner
Remove last abc

Beskrivning
Input: A string of "a", "b" and "c".
Output: Remove the last occurrence of "abc".
Constraint: 1 <= Input length <= 9
1 kommentarer
カズエイ 29 okt, 2024 @ 20:53 
5 lines (/6 lines)

(once)=(end)ccccccc
accccccc=ccccccca
(once)abcccccccc=
bccccccc=cccccccb
(once)ccccccc=