Company practice track

Microsoft-style coding and testing practice

Turn a requirement into a tested solution. Practice explaining how code behaves on empty input, invalid data and a normal path.

Start here

Check triangularity on a tall matrix

sympy/sympyeasy

Open first exercise

How should I show my testing approach in a Microsoft coding interview?

Microsoft's technical interview guide asks candidates to test their code and discuss boundaries and error cases. State the expected result for an ordinary case, then choose an input that exposes an assumption such as every matrix being square.

Microsoft's technical interview guidance

PraxisAI practice drill

Check the last row of a tall matrix

Call a matrix upper triangular when all entries below the main diagonal are zero. Compare [[1, 2], [0, 3], [0, 0]] with [[1, 2], [0, 3], [4, 0]].

Expected result. The first matrix qualifies. The second fails because the 4 lies below the diagonal. A check that only loops over the two-column square misses that row.

Repository exercises

Search and filter this track

Take-home projects

Paid plan required to start. Each workspace stays open for 24 hours.