solulubeta
Sign in
Story Problems / Strings
02.10 · Problem

Parse the Noisy Price Tag

Medium Careful simulation (atoi) Pro

This problem is part of solulu Pro

A scanner reads a price tag as text that may start with spaces, then an optional + or -, then digits, and then maybe garbage. Convert it to an integer: skip leading spaces, read the sign, read digits until something else…

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 30 of 94 · updated 2026-10-12