2 ms·
If someone asks you to "sum an array" then it's quite reasonable to think they mean calculate the sum of an array. Some languages (PHP springs to mind) have nat
by onion2k 10y ago
If someone asks you to "sum an array" then it's quite reasonable to think they mean calculate the sum of an array. Some languages (PHP springs to mind) have native "array_sum" functions. Wondering if someone from Google, who is interviewing a developer means "sum or summarize" would be weird.