100 Days Challenge Leetcode

LeetCode 132. Pattern (Medium)

LeetCode 132. Pattern (Medium)

LeetCode 132. Pattern: Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “pattern” or “LeetCode .132” Stack Approach: Leet Code 132. Pattern (Medium) Leetcode 316. Remove Duplicate Letters (Medium) C++: Stack Leet Code 132 LeetCode 896. Monotonic Array (Easy) Java: Stack Leet Code 132 […]

LeetCode 132. Pattern (Medium) Read More »

LeetCode 896. Monotonic Array (Easy)

LeetCode 896. Monotonic Array (Easy)

LeetCode 896. Monotonic Array: Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “Monotonic Array” or “LeetCode .896” Approach for Leetcode 898: Monotonic Array This solution solves the Leetcode problem 898, which checks if an array is monotonic, i.e., either entirely non-increasing or

LeetCode 896. Monotonic Array (Easy) Read More »

LeetCode 880. Decoded String at Index (Medium)

LeetCode 880. Decoded String at Index (Medium)

LeetCode 880. Decoded String at Index: Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “Decoded String at Index” or “LeetCode 880.” Leet Code 2612 Minimum Reverse Operations (Hard) Approach: Reverse LeetCode 880. Decoded String at Index Leet code 880, “Decoded String at

LeetCode 880. Decoded String at Index (Medium) Read More »

LeetCode 2233 Maximum Product After K Increments (Medium)

2233. Maximum Product After K Increments

LeetCode 2233 Maximum Product After K Increments: Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “Maximum Product After K Increments” or “LeetCode 2233.” problem. Approach: LeetCode 2233 Maximum Product After K Increments Visualization LeetCode 2233 Priority Queue In this Leetcode problem, we are tasked

LeetCode 2233 Maximum Product After K Increments (Medium) Read More »

Leetcode 316. Remove Duplicate Letters (Medium)

leetcode 316. Remove Duplicate Letters

Leetcode 316. Remove Duplicate Letters : Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “Remove Duplicate Letters ” or “Leetcode 316.” problem. Leet Code 287 Find the Duplicate Number (Medium) Approach Stack : Leetcode 316. Remove Duplicate Letters Our Objective is, Leet code 316

Leetcode 316. Remove Duplicate Letters (Medium) Read More »

LeetCode 389. Find The Difference (Easy)

leetcode 389. find the difference

Leetcode 389. Find The Difference :Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “Find The Difference ” problem. Bruteforce Approach 1: Understand the Problem 2: Read the Input 3: Count Character Occurrences 4: Compare the Counts 5: Return the Result leet Code

LeetCode 389. Find The Difference (Easy) Read More »

Leet code 799. Champagne Tower (Medium)

leetcode 799. champagne tower

Leetcode 799. Champagne Tower: Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “Champagne Tower” problem. Problem Explanation : In summary, LeetCode 799 Champagne Tower is a coding problem that involves pouring champagne into a tower of glasses and calculating how much champagne a

Leet code 799. Champagne Tower (Medium) Read More »

Leet Code 1048. Longest String Chain (Medium)

leetcode 1048. longest string chain

Leetcode 1048. Longest String Chain: Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “Longest String Chain” problem. A naive approach would be to check every word against every other word looking for predecessors, but that would lead to a TLE result. The first important realization

Leet Code 1048. Longest String Chain (Medium) Read More »

Leet Code 1658. Minimum Operations to Reduce X to Zero (Medium)

leetcode 1658. Minimum Operations to reduces x to zero

Minimum Operations to Reduce X to Zero (Medium) : Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “Minimum Operations to Reduce X to Zero (Medium)” problem. Problem explanation: We were given an array, and we were tasked with reducing the elements present

Leet Code 1658. Minimum Operations to Reduce X to Zero (Medium) Read More »

Leet Code 835. Image Overlap (Medium)

leetcode 835. image overlap

Image Overlap Leetcode:Initially, this problem provides an engaging opportunity for solving as one would eventually discover its enjoyment factor. Moreover, it holds practical significance in real-world scenarios as well. For instance, by determining the maximal overlapping region between two images and subsequently clipping them accordingly, one can enhance their focus and reduce their size effectively.

Leet Code 835. Image Overlap (Medium) Read More »

Leet Code 662. maximum width of binary tree (Medium)

leetcode 662. maximum width of binary tree

maximum width of binary tree :Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “Maximum Width of Binary Tree” problem.   Binary Tree Level Order Traversal Method 1: Level Order Traversal using Queue Algorithm: Note : Level oder Travesal is equivalent to BFS search

Leet Code 662. maximum width of binary tree (Medium) Read More »