Next Greater Element I & II | Monotonic Stacks | Multiple Java Solutions | Geekific

Support us on Patreon: / geekific
Discord Community: / discord
GitHub Repository: github.com/geekific-official/
In the previous video of this series we introduced monotonic stacks, and towards the end of that video, we crafted a template that can be used to solve any similar problem. In this video we dive deeper into this template and try to solve different aspects of that same previous exercise, notably the next greater element LeetCode problems.
LeetCode Problems solved in this video:
- leetcode.com/problems/next-gr...
- leetcode.com/problems/next-gr...
Timestamps:
00:00 Introduction
00:24 Next Greater Element I
01:07 Intuitive Java Solution
01:57 Monotonic Stacks Solution
02:47 Implementation
03:27 Next Greater Element II
06:40 Thanks for Watching!
If you found this video helpful, check other Geekific uploads:
- Object-Oriented Programming Fundamentals: • What is Object-Oriente...
- SOLID Principles and Best Practices: • SOLID Design Principle...
- Recursion Made Simple, Recursive Methods: • What is Recursion? | R...
- Use-Case and Sequence Diagrams: • UML Use-Case and Seque...
- Introduction to Dynamic Programming: • What Is Dynamic Progra...
- What is the Two-Pointers Technique and how to use it?: • What is the Two-Pointe...
- Trees Compared and Visualized, BST vs AVL vs RedBlack vs Splay vs Heaps: • Trees Compared and Vis...
- Generics and Wildcards in Java, Invariance vs Covariance vs Contravariance: • Generics and Wildcards...
- Two Sum Problem, from Brute Force to Optimal: • Two Sum Problem | From...
- What is a Thread? (Process, Program, Parallelism, Scheduler Explained): • What is a Thread? | Th...
- Domain-Driven Design Made Simple: • Domain-Driven Design M...
- Search In Rotated Sorted Array: • Search In Rotated Sort...
- Coin Change Problem, Minimum Number of Coins: • Coin Change Problem | ...
- Coin Change Problem II, Number of Ways to Produce Amount: • Coin Change Problem II...
- Introduction to Monotonic Stacks, Daily Temperatures LeetCode in Java: • Introduction to Monoto...
#Geekific #MonotonicStack #CodingInteview #LeetCode #Java #Google #Amazon #Meta #Microsoft #Apple #Netflix

Пікірлер: 1

  • @abrahamlincoln5724
    @abrahamlincoln57246 ай бұрын

    Keep making videos like these. These videos are much better than typing and recording the screen.