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] 1865. Finding Pairs With a Certain Sum

You are given two integer arrays nums1 and nums2. You are tasked to implement a data structure that supports the following operations:
leetcodealgorithmmediumcpphash-mapdata-structureproblem-solving

[Medium] 437. Path Sum III

Given the root of a binary tree and an integer targetSum, return the number of paths where the sum of the values along the path equals targetSum.
leetcodealgorithmmediumcpptreedfsrecursionproblem-solving

[Medium] 394. Decode String

Given an encoded string, return its decoded string.
leetcodealgorithmmediumcppstackstring-processingproblem-solving

[Medium] 417. Pacific Atlantic Water Flow

There is an m x n rectangular island that borders both the Pacific Ocean and the Atlantic Ocean. The Pacific Ocean touches the island’s left and top edges, and the...
leetcodealgorithmmediumcppdfsbfsgraphproblem-solving

[Medium] 406. Queue Reconstruction by Height

You are given an array of people, people, which are the attributes of some people in a queue (not necessarily in order). Each people[i] = [hi, ki] represents the ith...
leetcodealgorithmmediumcppgreedysortinglistproblem-solving

[Medium] 1856. Maximum Sum of Minimum Product

The minimum product of a subarray is the minimum value in the subarray multiplied by the sum of the subarray.
leetcodealgorithmmediumcppstackmonotonic-stackprefix-sumproblem-solving

[Medium] 316. Remove Duplicate Letters

Given a string s, remove duplicate letters so that every letter appears once and only once. You must make sure your result is the smallest in lexicographical order among all...
leetcodealgorithmmediumcppstackmonotonic-stackgreedyproblem-solving

[Medium] 648. Replace Words

In English, we have a concept called root, which can be followed by some other word to form another longer word. Let’s call this word successor. For example, when the...
leetcodealgorithmmediumcpptriehash-setstring-processingproblem-solving

Subscribe via RSS to stay updated