Solution to Valid Number by LeetCode

14 Jun

Question: https://oj.leetcode.com/problems/valid-number/

Question Name: Valid Number

2 Replies to “Solution to Valid Number by LeetCode

  1. When I ran the code above on online judge, it says that “global name ‘decimalAllow’ is not defined”. I didn’t find a definition of this decimalAllow. Can you help explain it?
    Thanks!

    • I tried the code and it works well.
      The decimalAllow is a argument of the function:
      def isNumberWithoutE(self, s, decimalAllow = True):
      Hope it be helpful!

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code into a <pre>YOUR CODE</pre> section. Thanks and Happy Coding!