A=B
Not enough ratings
Remove last abc
   
Award
Favorite
Favorited
Unfavorite
Tags: level
File Size
Posted
120.547 KB
10 Aug, 2022 @ 2:34pm
1 Change Note ( view )

Subscribe to download
Remove last abc

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

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