Maximum Number with Limited Digits

Write a function maxlim(m, k) that finds the largest number that can be
written with at most k digits taken from m, and written in the same
order as they appear in m. Both m and k are nonnegative integers.

Observation

The digits of all numbers are assumed to be as written in base 10.

Problem information

Author: Jordi Delgado / José Luis Balcázar

Generation: 2026-01-25T14:43:17.927Z

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