What is the algorithm to reverse the digits of an integer n?

1
Convert to string, reverse string, convert back to integer
2
Use a stack to store digits and then pop them
3
Use mathematical operations (modulus and division)
4
All of the above

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation