Created
March 2, 2021 10:59
-
-
Save feruxmax/48b5befe042a2bbea279c3addfc66e7c to your computer and use it in GitHub Desktop.
single-number
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
| public class Solution { | |
| public int SingleNumber(int[] nums) { | |
| return nums.Aggregate((x, y) => x ^ y); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
офигеть, я вообще про такое не знал
в свифте такая же есть оказывается
скинь почитать про эти штуки вообще, это битовые какиет операции?