Pinterest logoPinterest
Coding·60 minMembers

Implement round() From String + Round-to-Precision

Members only

Two-part string-arithmetic problem: (1) reimplement Python's `round()` on a string input — no float conversion — with all the edge cases that exposes; (2) round a numeric string `s` to a precision spe...

SWE
MLE
string
string-processing
parsing
math
numerical-stability
medium
Frequency
Low
Last asked
2026-05-27
Stage
phone-screen · onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...