IndexOutOfRange Leetcode help
Hey,
having an issue with my leetcode problem.
I know that its supposed to be a bitwise XOR operation but I tried a different algorithm as im not that advanced yet.
"Given a non-empty array of integers nums, every element appears twice except for one. Find that single one."
Error:Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array.
having an issue with my leetcode problem.
I know that its supposed to be a bitwise XOR operation but I tried a different algorithm as im not that advanced yet.
"Given a non-empty array of integers nums, every element appears twice except for one. Find that single one."
Error:Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array.