Concatenate Some Lists

Write a function cat_some(d, ks) that receives a dictionary d and a list
of possible keys ks. The keys of d are integers. The values are lists of
integers. The returned result must be the concatenation of the lists
corresponding in d to the keys in ks, in the same order the
corresponding keys appear in ks. Integers in ks that do not appear in d
contribute an empty list to the result.

Observation

Please make sure to remove or comment out from the Jutge submission any
doctesting code you might have in your source code.

Problem information

Author: José Luis Balcázar

Generation: 2026-01-25T15:26:02.005Z

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