Regular Expressions and Valid Numbers Interview Question

CppCodingZen
Level Up Coding
Published in
4 min readJul 13, 2021

--

Regular expression matching provides quick and efficient solution to many interview problems. In this short post, we are going to explore how a regular expression can decide whether a string represents a valid number.

This interview question was asked by LinkedIn.

Problem:

--

--

Solutions to programming interview questions at some of the top companies in the world: cppcodingzen.com