Matrix Multiplication
Given two matrices stored in binary files, implement matrix multiplication without using built-in functions by manually computing each output value using the row-by-column dot product. As a follow-up, explain how you would handle matrices that are too large to fit in memory using a block or out-of-core approach.
Asked at:
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Early August, 2026
Mid-level
Given two matrices stored in binary files, implement matrix multiplication without using built-in functions such as numpy.matmul, numpy.dot, or the @ operator. For compatible matrices, manually compute each output value using the row-by-column dot product. Follow-up: How would you perform the multiplication if the matrices are too large to fit in memory? Explain a block/tiled or out-of-core approach.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.