shanki himanshu 27 Light Poster

what is the use of string.xml file in android?
is it like defining global strings if we have multiple .java files in android application? correct me if i am wrong

shanki himanshu 27 Light Poster

if we have an array 3,1,3,2,2
then do xor all the numbers start with 0.
0^3 = 3
3^1 = 2
2^3 = 1
1^2 = 3
3^2 = 1

1 is the ans. works only if all numbers occurs twice and only one number occurs once.

Ancient Dragon commented: slick :) +14
shanki himanshu 27 Light Poster

Xor all the numbers as you input them. at the end you will left with the number occurs once.

WaltP commented: Nice! Didn't know that! +14