VMWare | USA | Phone Interview | Senior Software Engineer

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2022-02-25Added By Anonymous
Source: Link

Please define a Custom Datastructure to represent non-negative integers of unlimited length and implement "add" operation for two instances of this type.


"1234" + "567" = "1801"

"99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999998888888888888888

8888888888888888888888888888888877777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777"+"1" =


"99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999998888888888888888

8888888888888888888888888888888877777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777778"

Comments