SyntaxFix
Write A Post
Hire A Developer
Questions
For faster and short solution you can use HashSet instead of List.
HashSet
List
a.Overlaps(b);
Overlaps documentation
This method is an O(n) instead of O(n^2) with two lists.