Problems
Contests
Account
Problems
> Grouped with Dashes > Editorial
Grouped with Dashes — Solution & Editorial
Back to the Problem
Slice in steps of K and join.
Complexity:
O(|S|)
×
Refer Job