class Solution { public: // a valid number should be in the below form // -/+digit.digitE/e+/-digit bool isNumber(const char *s) { if (s == NULL) return false; int end = 0; while (s[end] != '
class Solution { public: // a valid number should be in the below form // -/+digit.digitE/e+/-digit bool isNumber(const char *s) { if (s == NULL) return false; int end = 0; while (s[end] != '