Welcome to My Technical Blog

Exploring algorithms, data structures, and software engineering insights through LeetCode solutions in Python.

169+ Problems Solved
3 Difficulty Levels
20+ Categories

Latest Posts

All Posts

[Hard] 460. LFU Cache

Design and implement a data structure for a Least Frequently Used (LFU) cache.
leetcodealgorithmhardcppdesigndata-structureshash-maplinked-listproblem-solving

Algorithm Templates: Stack

The stack is one of the most versatile data structures in coding interviews. Whether you’re matching parentheses, evaluating expressions, or finding the next greater element in an array, a stack...
leetcodetemplatesstackdata-structures

Algorithm Templates: Calculator

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

[Medium] 224. Basic Calculator

Given a string s representing a valid expression, implement a basic calculator to evaluate it, and return the result of the evaluation.
leetcodealgorithmmediumcppstringstackexpression-evaluationproblem-solving

[Hard] 772. Basic Calculator III

Implement a basic calculator to evaluate a simple expression string.
leetcodealgorithmhardcppstringstackrecursionexpression-evaluationproblem-solving

[Medium] 227. Basic Calculator II

Given a string s which represents an expression, evaluate this expression and return its value.
leetcodealgorithmmediumcppstringstackexpression-evaluationproblem-solving

[Medium] 324. Wiggle Sort II

Rearrange nums such that nums[0] < nums[1] > nums[2] < nums[3] ... (wiggle order).
leetcodealgorithmmediumcpparraysnth-elementthree-way-partitionindex-mappingproblem-solving

[Easy] 20. Valid Parentheses

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
leetcodealgorithmeasycppstringstackproblem-solving

[Medium] 525. Contiguous Array

Given a binary array nums, return the maximum length of a contiguous subarray with an equal number of 0 and 1.
leetcodealgorithmmediumcpparrayshash-mapprefix-sumproblem-solving

Subscribe via RSS to stay updated