Leetcode 65: Valid Number

This is not a great leetcode question because it is not clearly defined. This would be fine as a real interview question where you can work out the requirements by asking the interviewer questions but in leetcode you just have to use trial and error by submitting to see if it passes the test cases. So the following cases need to pass: “.1” -> true and “2.” -> true. Also the exponent number can have an optional sign character (+/-).

This entry was posted in programming and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.