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] 850. Rectangle Area II

You are given a 2D array of axis-aligned rectangles. For each rectangle[i] = [xi1, yi1, xi2, yi2], where (xi1, yi1) is the bottom-left corner and (xi2, yi2) is the top-right...
leetcodealgorithmhardcppgeometrysweep-linesegment-treeproblem-solving

[Medium] 286. Walls and Gates

You are given an m x n grid rooms initialized with these three possible values:
leetcodealgorithmmediumcpparraymatrixbfsproblem-solving

[Medium] 279. Perfect Squares

Given an integer n, return the least number of perfect square numbers that sum to n.
leetcodealgorithmmediumcppmathdynamic-programmingbfsproblem-solving

Algorithm Templates: Greedy

Greedy algorithms are among the most elegant tools in competitive programming — when they work, they’re simpler and faster than dynamic programming. This guide covers the core greedy patterns you’ll...
leetcodetemplatesgreedy

[Easy] 346. Moving Average from Data Stream

Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window.
leetcodealgorithmeasycppqueuesliding-windowdesignproblem-solving

[Medium] 994. Rotting Oranges

You are given an m x n grid where each cell can have one of three values:
leetcodealgorithmmediumcpparraymatrixbfsproblem-solving

[Medium] 253. Meeting Rooms II

Given an array of meeting time intervals intervals where intervals[i] = [starti, endi], return the minimum number of conference rooms required.
leetcodealgorithmmediumcpparraysortingpriority-queuetwo-pointersproblem-solving

[Easy] 67. Add Binary

Given two binary strings a and b, return their sum as a binary string.
leetcodealgorithmeasycppstringmathbit-manipulationproblem-solving

[Medium] 281. Zigzag Iterator

Given two 1d vectors, implement an iterator to return their elements alternately.
leetcodealgorithmmediumcppdesigniteratorproblem-solving

[Hard] 1206. Design Skiplist

Design a Skiplist without using any built-in libraries.
leetcodealgorithmhardcppdata-structuresskiplistlinked-listproblem-solving

Subscribe via RSS to stay updated