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 841. Keys and Rooms

There are n rooms labeled 0 to n-1. All rooms are locked except room 0. Each room contains a set...
leetcodemediumgraphdfsbfs

All Posts

LeetCode 112. Path Sum

Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values along the path...
leetcodeeasytreedfs

LeetCode 110. Balanced Binary Tree

Given a binary tree, determine if it is height-balanced. A height-balanced binary tree is one in which the depth of the two subtrees of every node never differs by more...
leetcodeeasytreedfs

LeetCode 78. Subsets

Given an integer array nums of unique elements, return all possible subsets (the power set). The solution must not contain duplicate subsets.
leetcodemediumbacktracking

LeetCode 523. Continuous Subarray Sum

Given an integer array nums and an integer k, return true if nums has a good subarray, i.e., a contiguous subarray of length at least 2 whose sum is a...
leetcodemediumprefix-sumhash

LeetCode 348. Design Tic-Tac-Toe

Design a Tic-Tac-Toe game that is played on an n x n board between two players. A move is guaranteed to be valid and is placed on an empty block....
leetcodemediumdesignmatrix

LeetCode 59. Spiral Matrix II

Given a positive integer n, generate an n × n matrix filled with elements from 1 to n² in spiral order (clockwise).
leetcodemediummatrixsimulation

LeetCode 43. Multiply Strings

Given two non-negative integers represented as strings num1 and num2, return their product as a string. You cannot convert the inputs to integers directly (numbers can be very large).
leetcodemediumstringmathsimulation

LeetCode 42. Trapping Rain Water

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
leetcodehardtwo-pointersstackdp

Subscribe via RSS to stay updated