I enjoy CodeFights at the moment and at the end of my last fight i found something interesting. The code in those two cases (mine and the opponent) was said to be correct. Is there a difference between this source code:
return Integer.toString(Character.getNumericValue(ch1) + Character.getNumericValue(ch2));
and this one:
return new Integer(Character.getNumericValue(ch1)+ Character.getNumericValue(ch2)).toString();
What is the key that i am missing?