У меня есть List<int>
, который содержит, например, 1,2,4,7,9.
Я имею диапазон от 0 до 10.
Есть ли способ определить, какие числа отсутствуют в этой последовательности?
Я думал, что LINQ может предоставить опцию, но я не вижу никого
В реальном мире мой список может содержать 100 000 элементов, поэтому производительность является ключевой