cswork / OAOpen practice workspace

SalesforceOA #40

String Compression Problem

Estimated EasyStatement and editorial — judging is being prepared

Topics (AI-labelled)Strings

Given a string, write a function to compress it by sh

Example 1

Input:

input = "abaasass"

Output:

"a1b1a2s1a1s2"

Explanation: :)

Editorial

Loading solution…