We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Bit Manipulation: Lonely Integer
- Discussions
Bit Manipulation: Lonely Integer
Bit Manipulation: Lonely Integer
Sort by
recency
|
162 Discussions
|
Please Login in order to post a comment
public class Solution {
Brute force C++ Code || Bit Manipulation
Tiny Ruby solution:
Another way of doing the code: def findLonely(arr): array = list(set(arr)) for i in range(len(array)): if arr.count(array[i]) !=2: return array[i]
Another way of doing the code: def findLonely(arr): array = list(set(arr)) for i in range(len(array)): if arr.count(array[i]) !=2: return array[i]