Valid number

0
Remix

Return whether a string is a valid number: an integer or decimal with an optional sign, optionally followed by an exponent (e or E and an integer). Spell out the rules first, then implement them cleanly.

MetaCodingLast asked Apr 2026
No answer yet. Write the first one; the best answer gets endorsed.