3 ms·
Where did your choice of regex come from? The problem statement does not have any regex, and if you wanted to derive a regex from the problem statement you woul
by anonymoushn 5y ago
Where did your choice of regex come from? The problem statement does not have any regex, and if you wanted to derive a regex from the problem statement you would probably need to get ^[0-9]*$ if you wanted to be correct.