Is String a Valid Number?
Given an input string, determine if it makes a valid number or not.
Statement
Given an input string, determine if a given string makes a valid number or not.
Notes:
- For simplicity, assume that white spaces are not present in the input.
- In case the input string is empty, the function should return TRUE.
Example
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.