Tag: integer
-
How to find factorial of an integer value
This is the third solution to find the factorial of long integer value. This solution uses the recursion approach. The recursive function should have an exit condition to stop function calling itself infinite number of times.
-
How to find factorial of an integer value
This is the first solution to find the factorial of an integer value.
-
How to find length of integer value using Integer class
This is the third solution to find the length of a given primitive int data type value. This approach uses Integer wrapper class to convert to string before using the length method.
-
How to find length of integer value using String class
This is the second solution to find the length of a given primitive int data type value. This approach converts int value to string, and then applies the length method.
-
How to find length of integer value using core logic
Look at the first solution to find the length of a given integer which is a primitive datatype. This approach is based on the core logic without using any built-in methods.
