Company: Intuit

Difficulty: medium

Problem Statement

Given an array of strings, add all the numeric values within the array and print the sum to stdout. If there are no numeric values, print 0. Note: The sum will not exceed 7000,000. Example: my_array = ['First', '2', '3rd', '4'] The array.sum function should return 6 because 2 + 4 = 6. Input Format For Custom Testing The input contains the newline-separated elements of the given array. Sample Case 0 Sample Input For Custom Testing Abc 20 EFg231 10 cDe Sample Output 30 Explanation The numerical elements are 20 and 10 that sum to 30. Sample Case 1

More Intuit OA questionsInterview experiences