← Atlassian questions
CodingReported in a candidate post, Jul 2025

Recover the original number from a shifted and concatenated encoding

Filed under Atlassian

The question

A number is encoded by shifting by one position and concatenating column-wise k times; given the encoded string recover the original. With k=3 the example '5XX25X325132X13XX1' decodes to '5231'.

No write-up yet. Related questions below have one.

Related Atlassian questions

Collected from public candidate posts and coding forums. Updated Nov 2026.