Matrix and Grid coding problems
Matrix problems test 2D indexing: spiral order, rotations, grid walks, flood fills and 2D prefix sums.
18 problems: 10 easy, 8 medium, 0 hard. Free to read; a free account solves them and earns XP and Aura.
- Count Black CellsPractice · +10 XP · matrix, traversal, beginnereasy
- Matrix Anti-Diagonal SumPractice · +10 XP · matrix, traversaleasy
- Matrix Column SumPractice · +10 XP · matrixeasy
- Matrix Diagonal ElementsPractice · +10 XP · matrix, traversaleasy
- Matrix Element SumPractice · +10 XP · matrix, traversal, loopseasy
- Matrix Row SumsPractice · +10 XP · matrix, loops, basiceasy
- Matrix Saddle PointsPractice · +10 XP · matrix, grid, traversaleasy
- Matrix Spiral PrintPractice · +10 XP · matrix, traversaleasy
- Matrix TransposePractice · +10 XP · matrixeasy
- Sum of Matrix DiagonalsPractice · +10 XP · matrix, traversaleasy
- Distinct Row CountsPractice · +20 XP · matrix, hashing, data structuresmedium
- Distinct Subgrid ValuesPractice · +20 XP · matrix, prefix sums, hash setmedium
- Matrix Neighbors SumPractice · +20 XP · matrix, bfs, hash mapmedium
- Matrix Zero Sum SubgridsPractice · +20 XP · matrix, prefix sums, hash mapmedium
- Maximum Rectangle SumPractice · +20 XP · matrix, prefix sums, kadane's algorithmmedium
- Maximum Sum SubmatrixPractice · +20 XP · matrix, prefix sumsmedium
- Minimum Path Sum in GridPractice · +20 XP · matrix, dynamic programming, bfsmedium
- Most Frequent Row XORPractice · +20 XP · matrix, hash map, frequencymedium
Solve these free. Get paid in XP and Aura.
One tap with Google, no card. Every first accepted solve pays XP for the leaderboards and Aura for real goodies.
Other topics
Hash Map and Hashing101Arrays88Prefix Sums64SQL and Databases64Beginner Coding Problems60Graphs, BFS and DFS45Greedy41Sliding Window39Dynamic Programming37Sorting36Math and Number Theory36Strings35Two Pointers35Stack29Binary Search25Simulation25Recursion22Linked List20Trees20Heap and Priority Queue18Bit Manipulation18Queue and Deque16