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

[Medium] 277. Find the Celebrity

Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is...
leetcodealgorithmmediumcppgraphtwo-pointersproblem-solving

[Medium] 1762. Buildings With an Ocean View

There are n buildings in a line. You are given an integer array heights of size n that represents the heights of the buildings in the line.
leetcodealgorithmmediumcpparraystackmonotonic-stackproblem-solving

[Hard] 32. Longest Valid Parentheses

Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
leetcodealgorithmhardcppstringdynamic-programmingstackproblem-solving

[Easy] 938. Range Sum of BST

Given the root node of a binary search tree and two integers low and high, return the sum of values of all nodes with a value in the inclusive range...
leetcodealgorithmeasycpptreebstdfsproblem-solving

[Easy] 408. Valid Word Abbreviation

A string can be abbreviated by replacing any number of non-adjacent, non-empty substrings with their lengths. The lengths should not have leading zeros.
leetcodealgorithmeasycppstringtwo-pointersproblem-solving

[Easy] 1047. Remove All Adjacent Duplicates In String

You are given a string s consisting of lowercase English letters. A duplicate removal consists of choosing two adjacent and equal letters and removing them.
leetcodealgorithmeasycppstringstacktwo-pointersproblem-solving

Algorithm Templates: String Processing

Welcome to the String Processing template collection! These are ready-to-use C++ snippets for the core string patterns: sliding window, two pointers, string matching, manipulation, and parsing. If you already know...
leetcodetemplatesstring

Subscribe via RSS to stay updated