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
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
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.
Xor all the numbers as you input them. at the end you will left with the number occurs once.