Quick Overview

Determine whether an ASCII string is a valid signed integer or decimal with an optional signed exponent under a precise grammar. Reject whitespace, incomplete components, multiple exponents, decimal exponents, and unsupported numeric forms.

Determine Whether a String Is a Valid Number

Company: eBay

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Determine whether an ASCII string is a valid signed integer or decimal with an optional signed exponent under a precise grammar. Reject whitespace, incomplete components, multiple exponents, decimal exponents, and unsupported numeric forms.

Read the full eBay Software Engineer interview experience this question came from

Loading…