Quick Overview

Practice a matrix diagonal sorting problem that scans bottom-left to top-right diagonals and returns indexes ordered by their diagonal strings. The prompt targets careful indexing, deterministic tie-breaking, and translating a geometric traversal into reliable code.

Sort Matrix Diagonals By Their Values

Company: Capital One

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Practice a matrix diagonal sorting problem that scans bottom-left to top-right diagonals and returns indexes ordered by their diagonal strings. The prompt targets careful indexing, deterministic tie-breaking, and translating a geometric traversal into reliable code.

Loading…