Random Access in Run-Length Encoded Data
Given run-length encoded data such as B1A2E3C1, implement find(encoded, p) to return the character at zero-based index p in the decoded sequence. Counts may have multiple digits. Do not fully de...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
