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

[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

[Medium] 274. H-Index

Given an array of integers citations where citations[i] is the number of citations a researcher received for their i-th paper,...
leetcodemediumsorting

All Posts

[Medium] 56. Merge Intervals

Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input....
leetcodealgorithmmediumcpparraysortingintervalproblem-solving

[Medium] 528. Random Pick with Weight

You are given a 0-indexed array of positive integers w where w[i] describes the weight of the ith index.
leetcodealgorithmmediumcppdesignbinary-searchprefix-sumproblem-solving

[Medium] 398. Random Pick Index

Given an integer array nums with possible duplicates, randomly output the index of a given target number. You can assume that the given target number must exist in the array....
leetcodealgorithmmediumcpphash-tablereservoir-samplingproblem-solving

[Medium] 277. Find the Celebrity

Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is...
leetcodealgorithmmediumcppgraphtwo-pointersproblem-solving

[Medium] 1762. Buildings With an Ocean View

There are n buildings in a line. You are given an integer array heights of size n that represents the heights of the buildings in the line.
leetcodealgorithmmediumcpparraystackmonotonic-stackproblem-solving

[Hard] 32. Longest Valid Parentheses

Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
leetcodealgorithmhardcppstringdynamic-programmingstackproblem-solving

[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...
leetcodealgorithmeasycpptreebstdfsproblem-solving

Subscribe via RSS to stay updated