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

Algorithm Templates: Heap

Welcome to the Heap templates page! Here you’ll find battle-tested Java snippets for every common heap (priority queue) pattern on LeetCode — from basic min/max heaps to advanced techniques like...
leetcodetemplatesheappriority-queue

[Medium] 53. Maximum Subarray

Given an integer array nums, find the subarray with the largest sum, and return its sum.
leetcodemediumarraydynamic-programminggreedydivide-and-conquer

[Medium] 376. Wiggle Subsequence

A wiggle sequence is a sequence where the differences between successive numbers strictly alternate between positive and negative. The first difference (if one exists) may be either positive or negative....
leetcodemediumarraydynamic-programminggreedy

[Medium] 1029. Two City Scheduling

A company is planning to interview 2n people. Given the array costs where costs[i] = [aCosti, bCosti], the cost of flying the i-th person to city a is aCosti, and...
leetcodemediumarraygreedysorting

[Hard] 135. Candy

There are n children standing in a line. Each child is assigned a rating value given in the integer array ratings.
leetcodehardarraygreedy

[Easy] 1710. Maximum Units on a Truck

You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes[i] = [numberOfBoxesi, numberOfUnitsPerBoxi]:
leetcodeeasyarraygreedysorting

Subscribe via RSS to stay updated