Understanding Leetcode #15 3Sum

Leetcode # 15. 3Sum provides an unsorted list of integers and asks that you find all unique triplets from that list that add to a target number, in this case zero (0). A brute force approach would be ...
0 Read More

Leetcode - 100. Same Tree

The “Same Tree” problem is a classic interview question that tests your understanding of tree traversal. It asks: Given two binary trees, check if they are structurally identical and node values a...
0 Read More

Leetcode - 226. Invert Binary Tree

One of the most elegant problems in tree manipulation is inverting a binary tree — essentially flipping it along its vertical axis. It's a simple yet beautiful example of recursion and tree traversa...
0 Read More

781. Rabbits in Forest

781. Rabbits in ForestDifficulty: MediumTopics: Array, Hash Table, Math, GreedyThere is a forest with an unknown number of rabbits. We asked n rabbits "How many rabbits have the same color as you?" an...
0 Read More

Leetcode - 101. Symmetric Tree

Checking if a binary tree is symmetric is a classic recursive problem in data structures. In this post, let’s break it down into simple steps, understand the thought process, and see how recursion m...
0 Read More

2145. Count the Hidden Sequences

2145. Count the Hidden SequencesDifficulty: MediumTopics: Array, Prefix SumYou are given a 0-indexed array of n integers differences, which describes the differences between each pair of consecutive i...
0 Read More

1399. Count Largest Group

1399. Count Largest GroupDifficulty: EasyTopics: Hash Table, MathYou are given an integer n.Each number from 1 to n is grouped according to the sum of its digits.Return the number of groups that have ...
0 Read More