Bloomberg | Phone | Add Strings
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2020-05-04Added By Anonymous
Source: Link
Company: Bloomberg
Role: unknown
Stage: Phone
Location: unknown
Year: unknown
Role: unknown
Stage: Phone
Location: unknown
Year: unknown
Original Experience:
https://leetcode.com/problems/add-strings/
Add 2 numbers (positive or negative) represented as String without directly converting them to integers.
"245" + "50" -> "295"
"245" + "-50" -> "195"
Tricky to handle negative cases.