Topic 1 Question 29
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 linked list
A hash table
A two-dimensional array
A comma-delimited string
ユーザの投票
コメント(7)
- 正解だと思う選択肢: B
Hash table with the account number as the key, the timestamp is useless for this question, so we can safely discard it.
👍 3morenocasado2022/04/09 - 正解だと思う選択肢: B
B is correct
👍 3tomato1232022/08/19 Hash Table seems right - https://open4tech.com/array-vs-linked-list-vs-hash-table/
👍 2ralf_cc2021/06/21
シャッフルモード