✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
var jagged = new[]{
new[]{1,2},
new[]{3},
Array.Empty<int>(),
new[]{4,5,6}
};
var flat = jagged.SelectMany(a=>a.DefaultIfEmpty(-1));
]]>