Welcome to My Technical Blog

Exploring algorithms, data structures, and software engineering insights through detailed LeetCode problem solutions

169+ Problems Solved
3 Difficulty Levels
20+ Categories

Latest Posts

LeetCode 134. Gas Station

There are n gas stations along a circular route. Station i has gas[i] units of gas. It costs cost[i] units...
leetcodemediumgreedyarray

LeetCode 1197. Minimum Knight Moves

In an infinite chess board with coordinates from -infinity to +infinity, a knight starts at (0, 0). Return the minimum...
leetcodemediumbfs

LeetCode 1146. Snapshot Array

Implement a SnapshotArray that supports: SnapshotArray(int length) – initializes an array of the given length (all zeros) void set(index, val)...
leetcodemediumdesignbinary-search

All Posts

[Medium] 146. LRU Cache

[Medium] 146. LRU Cache
leetcodealgorithmmediumcppdesigndata-structureshash-maplinked-listproblem-solving

[Hard] 460. LFU Cache

[Hard] 460. LFU Cache
leetcodealgorithmhardcppdesigndata-structureshash-maplinked-listproblem-solving

Algorithm Templates: Stack

Minimal, copy-paste C++ for parentheses matching, expression evaluation, nested structures, and monotonic stack.
leetcodetemplatesstackdata-structures

Algorithm Templates: Calculator

Minimal, copy-paste C++ for expression evaluation with +, −, ×, ÷ and parentheses. See also Stack for RPN and nested expressions.
leetcodetemplatescalculatorexpression-evaluation

Subscribe via RSS to stay updated