C# Array to compare ,SequenceEqual() and Reverse()— San (@santoshpoojari3) April 21, 2020
int[] arr1 = new int[] { 1,2,3};
int[] arr2 = new int[] { 3,2,1 };
Console.WriteLine(arr1.SequenceEqual(arr2)); // false
Console.WriteLine(arr1.Reverse().SequenceEqual(arr2)); // true#csharp #programming #programmers #code
Thursday, April 23, 2020
c# Array SequenceEqual() and Reverse()
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment