Created
July 22, 2016 06:13
-
-
Save neo125874/4728ac2ffbd042ef5937cef6d1b0ce50 to your computer and use it in GitHub Desktop.
Codility Lesson 2-2 Arrays
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
// you can also use other imports, for example: | |
// using System.Collections.Generic; | |
// you can write to stdout for debugging purposes, e.g. | |
// Console.WriteLine("this is a debug message"); | |
class Solution { | |
public int solution(int[] A) { | |
int result = 0; | |
foreach(var number in A){ | |
result ^= number; | |
} | |
return result; | |
// write your code in C# 6.0 with .NET 4.5 (Mono) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment