Byte Depth
← All tags

#Matrix

10 articles

DSA

Rotate Matrix

Simulation approach — transpose + row-reverse. Time O(n²), Space O(1).

Medium·Aug 8, 2026
DSALeetCodePractice🏢 Amazon

DSA

Spiral Matrix

Simulation approach.

Medium·Aug 8, 2026
DSALeetCodePractice

DSA

Set Matrix Zeros

Covers: Set, Greedy. Optimal — Time O(m*n), Space O(1).

Medium·Aug 8, 2026
DSALeetCodePractice

DSA

Set Matrix Zeroes

Covers: Brute Force, Optimal. Optimal — Time O(m*n), Space O(1).

Medium·Aug 8, 2026
DSAArraysLeetCode

DSA

Search in 2D matrix

Covers: Brute Force, Better, Optimal. Optimal — Time O(log(n * m), Space O(1).

Medium·Aug 8, 2026
DSAArraysLeetCode

DSA

Rotate matrix by 90 degrees

Covers: Brute Force, optimal. Optimal — Time O(m*n), Space O(1).

Medium·Aug 8, 2026
DSAArraysLeetCode

DSA

Transpose Matrix

Arrays. Time O(h × w), Space O(h × w).

Easy·Aug 8, 2026
DSAArraysLeetCode

DSA

Matrix Chain Multiplication

Covers: Recursive, Memoized. Optimal — Time O(n), Space O(n).

Hard·Aug 8, 2026
DSADynamic ProgrammingDP

DSA

Binary Tree Zigzag Level Order Traversal

Binary Trees. Time O(n), Space O(n).

Medium·Aug 8, 2026
DSABinary TreeLeetCode

DSA

Shortest Path in Binary Matrix

Graphs. Time O(V^2).

Medium·Aug 8, 2026
DSAGraphsBFS
© 2026 ByteDepth. All rights reserved.Built with care for curious engineers.