Leetcode 59. How To Go Around A Square Matrix In Spiral Order
A simple example of using C++ switch
Jan 31, 20242 min read533

Search for a command to run...
Articles tagged with #cpp
A simple example of using C++ switch

Two dynamic programming techniques to solve Leetcode 120. Triangle. One has space complexity O(n^2). The other is O(n).

An example of using a sliding window approach and an unordered map to track character positions

A simple C++ solution to Leetcode 1695. Maximum Erasure Value using a sliding window approach and prefix sums.

The math behind Leetcode 342. Power of Four.

A C++ solution to Leetcode 804. Unique Morse Code Words using mapping and std::unordered_set to keep track of unique representations.
