Fix a Buggy Matrix Class

Asked at Waymo · Coding Questions · Difficulty: Easy · Last asked May 22, 2026

A small `Matrix` class (plain Python lists, no NumPy) is given in the starter code. It contains three bugs. Fix them so that the class behaves as specified below. Keep the public names and signatures unchanged.

Loading the problem…