Advertisement
Nemo048

Untitled

Jun 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1. public static int find_it(int[] seq)
  2.         {
  3.             int found = 0;
  4.  
  5.             foreach (var num in seq)
  6.             {
  7.                 found ^= num;
  8.             }
  9.  
  10.             return found;
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement