C
C#14mo ago
Lilac

How to indicate whether there are any two rows overlapping

Hey guys, it's 4 a.m right now and I'm still struggling with this question about C# 2D matrix. Enter the nth order square matrix. Indicate whether in the matrix you just entered are any two rows overlapping, if so, indicate which two rows From my research, there are methods like LINQ, groupby... all that stuff, but all of them are really hard for me to comprehend. Please help me
2 Replies
FestivalDelGelato
i guess you kinda could .Distinct() a column and then for each value do a .Count(), or yeah you could GroupBy() the column and do a Count() of the grouped values
Lilac
LilacOP14mo ago
How to use the GroupBy()?

Did you find this page helpful?