AmazonSoftware Engineer · Online AssessmentCodemia practiceValidate Numeric Price Literals in Bulk Seller Upload Files
Write `is_valid_number(s)` that accepts decimal literals such as `19.99`, `-0.5`, `.5`, `3.`, `2e10`, and `+6.02E-3`, and rejects strings like `e9`, `1e`, `.`, `--5`, or `4e3.5`, without using float() or regular expressions.