← ALL NOTES
String

1957. Delete Characters to Make Fancy String

Given s, a fancy string has no three identical consecutive characters. Delete the minimum characters to make it fancy and return the result. Greedily keep at most two of any run of identical…

Loading…