Print the strings whose summed integer values are nonzero.
Unlock detailed company stats for this questionUpgrade
Given a list of (string, integer) pairs, calculate the sum of integers associated with each string and print the strings whose final sums are nonzero. Example input: Suresh 10, Suresh 20, Aditya 20, Aditya -20. Output: Suresh 30 (Aditya's total is 0, so Aditya is not printed).
Format · Written coding test on paper.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
