#codingexercise
bool SequenceEqual(int[] A, int[] B)
{
if ( A == null || B == null) return false;
if ( A == B ) return true;
if (A.Length != B.Length) return false;
for (int i = 0; i < A.Length; i++)
if (A[i] != B[i]) return false;
return true;
}
Int getSum ( int [] A)
{
If (A == null) return 0;
Return A.Sum();
}
bool SequenceEqual(int[] A, int[] B)
{
if ( A == null || B == null) return false;
if ( A == B ) return true;
if (A.Length != B.Length) return false;
for (int i = 0; i < A.Length; i++)
if (A[i] != B[i]) return false;
return true;
}
Int getSum ( int [] A)
{
If (A == null) return 0;
Return A.Sum();
}
No comments:
Post a Comment