All Questions
2 questions
0
votes
1
answer
2k
views
Efficient way to find Xor of pairs with given target X in a range 0 to K
I came across a problem: given an array (can be huge 10^8) and an integer, K, find the count of pairs in the array whose Xor equal to each value in the range 0 to K.
eg:
Arr = 1 2 3
K = 2
since K=...
5
votes
1
answer
1k
views
Coding site with test harness for basic data structures like linked list,graph,strings etc [closed]
I just took an Amazon online test and I messed it up badly. I am out of practice and have low confidence in writing code.
Are there any coding sites with test harnesses for basic data structures and ...