Day 12 – Spiral Matrix, Subarray Sum = K, Pascal’s Triangle, Majority Elements (> n/3), and 3Sum
Worked through classic matrix traversal, subarray prefix sums, combinatorics, and frequency-based problems using hashing and two-pointer techniques.
LeetCode 54 – Spiral Matrix
Traverse matrix layer by layer in spiral order.
vector<int> spiralOrder(...
sids-dsa-journal.hashnode.dev5 min read