Letters & Numbers

Given a string containing letters and numbers, the implicit value of the
string is the integer value obtained by removing the letters and then
reading out the digits.

For example, the implicit value of 16Dec2019 is 162019 and the implicit
value of a1B2c3D is 123.

The implicit value of a string without digits is zero.

Write a function i_val(lst) that receives a list of strings made up of
letters and numbers, and returns the corresponding list of implicit
values, sorted by their nummerical value.

Sample session

Problem information

Author: ProAl

Generation: 2026-01-25T17:13:36.615Z

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