Welcome to My Technical Blog

Exploring algorithms, data structures, and software engineering insights through detailed LeetCode problem solutions

313+ Problems Solved
3 Difficulty Levels
20+ Categories

Latest Posts

[Medium] 221. Maximal Square

Given an m x n binary matrix filled with '0's and '1's, find the largest square containing only '1's and...
leetcodemediumdynamic-programming

All Posts

[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...
leetcodealgorithmeasyjavatreebstdfsproblem-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.
leetcodealgorithmeasyjavastringtwo-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.
leetcodealgorithmeasyjavastringstacktwo-pointersproblem-solving

Algorithm Templates: String Processing

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

Algorithm Templates: Queue

Queues are one of the most versatile data structures in algorithm problems. This page collects ready-to-use Java templates for every queue variant you’ll encounter on LeetCode — from the basic...
leetcodetemplatesqueue

Algorithm Templates: Math & Bit Manipulation

This page collects ready-to-use Java templates for bit manipulation, fast exponentiation, GCD/LCM, prime sieves, and basic number theory. Each snippet is self-contained — copy it into your solution and adapt...
leetcodetemplatesmathbit-manipulation

Algorithm Templates: Linked List

This page collects battle-tested Java templates for every major linked-list pattern you’ll see on LeetCode. Each section includes ready-to-use code, the signal phrases that tell you which pattern to reach...
leetcodetemplateslinked-list

Algorithm Templates: DFS

Depth-First Search (DFS) is one of the most fundamental graph traversal algorithms. It works by starting at a node and exploring as far down each branch as possible before backtracking...
leetcodetemplatesdfsgraph

Algorithm Templates: Data Structure Design

Data structure design problems are among the most popular interview questions at top tech companies. This page provides complete, tested Java implementations for LRU/LFU cache, Trie, time-based key-value store, and...
leetcodetemplatesdesign

Algorithm Templates: BFS

Breadth-First Search (BFS) is a graph traversal algorithm that explores nodes layer by layer, visiting all neighbors at the current depth before moving deeper. It’s the go-to technique for finding...
leetcodetemplatesbfsgraph

Subscribe via RSS to stay updated