Skip to main content

4 docs tagged with "bit-manipulation"

View all tags

Hamming Distance

This question is asked by Facebook. Given two integers x and y, return the hamming distance between the two numbers.

Missing Number

This question is asked by Amazon. Given an array that contains all distinct values from zero through N except one number, return the number that is missing from the array.