Problem Description

Task: compress chars by counting consecutive same characters. Return new length.

Input Format

Java method

Output Format

Return value

Constraints

Write back into same array.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next