Regroup 3

Write a function @regroup@ that receives as argument a string consisting of lower-case letters and digits, and returns a regrouping of the characters in the string. The regrouping is as follows: in the returned string, first there come the letters, in the same order as they came in the argument string; and next come the digits, in the same order as they came in the argument string.

Sample session

Problem information

Author: ProAl

Generation: 2026-01-25T16:42:14.577Z

© Jutge.org, 2006–2026.
https://jutge.org