โ† Publicis Sapient questions
CodingReported in a candidate post, Mar 2024

Generate the next possible string pattern

Filed under Publicis Sapient

The question

Given an input string ending with a specific pattern such as 'abcd-aa-09', increment it to 'abcd-ab-01'. If the suffix ends with a number between '01' and '08', increment the numeric value by 1.

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

Related Publicis Sapient questions

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