In SPOJ, there is a problem to take two integers and reverse them and find their sum and reverse the sum.
The catch here is when two large integers are given. In java there is a object to help you with reverse, for deleting a char at a index in a string and lot more. It is StringBuffer class.
But the solutions to the problems in C takes very less time and space than Java does. I am not sure how thats possible.
The catch here is when two large integers are given. In java there is a object to help you with reverse, for deleting a char at a index in a string and lot more. It is StringBuffer class.
But the solutions to the problems in C takes very less time and space than Java does. I am not sure how thats possible.
No comments:
Post a Comment