Algorithm · Capital One · Medium
The script below attempts to load a CSV file and compute the total of one numeric column. In its current form it contains several weaknesses involving correctness, performance, readability, resource management, and security. Review the code, explain the issues, and produce a refactored version. Your submission should cover the following: Find and describe at least five defects or risks in the current code. Group your findings under correctness, performance,…
Checking your access…