Determine Whether a String Is a Valid Number

Read the full interview experience this question came from →

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

eBay logo
eBay
Aug 1, 2026
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
6
0
Loading...