โ† TCS questions
CodingEasy

Convert a given matrix into a lower triangular matrix

Filed under TCS

Given an `n x n` square matrix of integers, convert it into a lower triangular matrix in-place by setting all elements strictly above the main diagonal (where row index `i < column index j`) to 0.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related TCS questions

Collected from public candidate posts and coding forums. Updated Nov 2026.