Page 1 of 1

You are parsing a log file that contains three columns: a timestamp, an account number (a string), and a transaction amo

Posted: Mon Aug 01, 2022 9:50 am
by answerhappygod
You are parsing a log file that contains three columns: a timestamp, an account number (a string), and a transaction amount (a number). You want to calculate the sum of all transaction amounts for each unique account number efficiently.
Which data structure should you use?

A. A linked list
B. A hash table
C. A two-dimensional array
D. A comma-delimited string