Problems
Contests
Account
Problems
> Cut and Dot > Editorial
Cut and Dot — Solution & Editorial
Back to the Problem
One length comparison and a slice.
Complexity:
O(|S|)
×
Refer Job