Validate if a given string is numeric.
" 0.1 " =>
"1 a" =>
Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before implementing one.
The signature of the
C++ function had been updated. If you still see your function signature accepts a
const char * argument, please click the reload button to reset your code definition.