C
C#12mo 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
Omnissiah
Omnissiah12mo ago
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
LilacOP12mo ago
How to use the GroupBy()?
Want results from more Discord servers?
Add your server