...

/

Is String a Valid Number?

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

Access this course and 1400+ top-rated courses and projects.