engineering recuitment Beltron Programmer Mock Test 2024 Algorithms Searching, Sorting and Hashing Sorting
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