What are common pitfalls with NumPy arrays, especially views vs. copies and integer overflow?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks for the common NumPy pitfalls around views versus copies and fixed-width integer overflow. Tests which indexing operations share memory, how silent wraparound corrupts elementwise math, sums and products, and other quiet failures such as broadcasting shape bugs and NaN comparisons.