Concatenate Some Lists

Write a function cat_some(d,ks)cat\_some(d, ks) that receives a dictionary dd and a list of possible keys ksks. The keys of dd are integers. The values are lists of integers. The returned result must be the concatenation of the lists corresponding in dd to the keys in ksks, in the same order the corresponding keys appear in ksks. Integers in ksks that do not appear in dd 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