- Видео 34
- Просмотров 523 926
AlgoMonster
США
Добавлен 16 ноя 2022
Learn the patterns and solve any problems: algo.monster, brought to you by ex-Google engineers.
LeetCode Was Hard Until I Learned THESE 8 Patterns (With Templates!)
algo.monster/ 👈 Best place to learn and practice coding interviews
Almost all LeetCode problems can be solved with the same 8 patterns, and in this video, we'll explain the patterns and provide CODE TEMPLATES you can copy and use to solve any question!
All Code Templates: algo.monster/templates
Chapters
0:00 - Intro
0:49 - Two Pointers
2:29 - Sliding Window
4:20 - Binary Search
7:34 - BFS
10:08 - DFS
13:08 - Backtracking
16:58 - Priority Queue (Heap)
19:01 - Dynamic Programming
#leetcode #codinginterview #algorithms
Almost all LeetCode problems can be solved with the same 8 patterns, and in this video, we'll explain the patterns and provide CODE TEMPLATES you can copy and use to solve any question!
All Code Templates: algo.monster/templates
Chapters
0:00 - Intro
0:49 - Two Pointers
2:29 - Sliding Window
4:20 - Binary Search
7:34 - BFS
10:08 - DFS
13:08 - Backtracking
16:58 - Priority Queue (Heap)
19:01 - Dynamic Programming
#leetcode #codinginterview #algorithms
Просмотров: 150 563
Видео
The Offer Takes Care of Itself… When You Master This One Skill!
Просмотров 3,3 тыс.3 месяца назад
algo.monster The most structured way to prepare for coding interviews. Anyone is capable of landing their dream job in tech - but your negative mindset is holding you back. Let's talk about how we can overcome that. Want to master coding interviews the right way? Check out for a pattern-based approach that has helped land jobs at Google, Meta, and more! #coding #faang #mindset
The Simplest Coding Error You’re Probably Making
Просмотров 3,1 тыс.3 месяца назад
In this video, we're going to cover the most common error that engineers make in coding interviews - off-by-one. We'll explain what it is, common mistakes, and how to avoid making this error in your interviews. #coding #interviews #faang
DFS vs BFS, When to Use Which?
Просмотров 12 тыс.4 месяца назад
In this video, we'll be going through the difference between depth-first search and breadth-first search, and going through an example LeetCode problem of when to use each. 🟪 To learn more about DSA patterns: algo.monster 🥷 Discord: discord.gg/NzM4te47DT Find our flowchart here: algo.monster/flowchart Do you blank out the moment interviewer asks you a question you haven't solved on LeetCode bef...
Greedy Algorithms In-depth Explanation and Playlist (for Coding Interviews)
Просмотров 6 тыс.Год назад
In this video, we will introduce greedy algorithms and how to use greedy algorithms to solve LeetCode problems (playlist). 0:00 When to use greedy algorithms? 1:08 What are greedy algorithms? 2:16 Steps to use greedy algorithms 3:18 Why use greedy algorithms? 4:05 Example problem - coin change 9:36 Greedy algorithms summary and key points 10:48 LeetCode 860. Lemonade Change 19:45 LeetCode 1877....
This Flowchart Solves LeetCode Problems for You! 🤯
Просмотров 39 тыс.Год назад
Find the flowchart here: algo.monster/flowchart Do you blank out the moment interviewer asks you a question you haven't solved on LeetCode before? Use our revolutionary algorithm selection flowchart that helps you find the algorithms to use systematically. 🟪 To learn more about DSA patterns: algo.monster 🥷 Discord: discord.gg/NzM4te47DT In this video, we breakdown each path in the flowchart, gi...
The Last Dynamic Programming Video You'll Need to Watch
Просмотров 23 тыс.Год назад
This 1.5 hour long video is all you need to know to get started to master dynamic programming. Kevin and Sheldon go to great detail to explain the top patterns from intuition to problem solving. Follow along and you will develop a strong intuition by going through this tutorial. 🟪 Get the full pattern and practice list here: algo.monster/problems/dp-list Intro and Overview: (0:00) Pattern 1, Wa...
LeetCode is a JOKE with This ONE WEIRD TRICK
Просмотров 95 тыс.Год назад
algo.monster/problems/runtime_summary 👈 Written version with practice. How to know which algorithm to use to solve a LeetCode problem or a HackerRank online assessment? Simply use the time constraints to infer the intended time complexity and the algorithm. This video tutorial will help you systematically approach and quickly solve LeetCode easy, medium, and hard problems. Ideal for beginners a...
10 Ways to Master ALL Loops
Просмотров 7 тыс.Год назад
An introduction to control flow and ways you can clean up your messy flag based code to use advanced control flow! We're going to show you how to write for loops, while loops, and advanced control structures in Coding interviews and Leetcode! 🟪 Check out AlgoMonster: algo.monster 🥷 Discord: discord.gg/NzM4te47DT #programming #algorithm #timecomplexity #datastructures #datastructure #coding #com...
The (sad) Life Of A Leetcode Beginner
Просмотров 14 тыс.Год назад
🟪 Check out AlgoMonster: algo.monster 🥷 Discord: discord.gg/NzM4te47DT #memes #programmingmemes #programming #computerscience #leetcode #softwareengineer ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
Which Algorithms to Study for Coding Interviews? (Algorithm Tier List)
Просмотров 28 тыс.Год назад
Algorithms and Data Structures (DSA) tier list! How much should you spend learning one? Does it give you the best returns for crushing interviews? Do the homework before you start grinding away leetcode. Improve your algorithm problem solving skills fast. 🟪 Check out AlgoMonster: algo.monster 🥷 Discord: discord.gg/NzM4te47DT #leetcode #programming #algorithm #timecomplexity #datastructures #dat...
tech videos be like…
Просмотров 1,6 тыс.Год назад
🟪 Check out AlgoMonster: algo.monster 🥷 Discord: discord.gg/NzM4te47DT #memes #meme #computerscience #programmingmemes #programming #techlead #technology ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
Amazing New Discovery: O(1) Search Algorithm Revealed
Просмотров 4,7 тыс.Год назад
A better and faster alternative to binary search in just O(1) time! Let me introduce you to this new discovery. 🟪 Check out AlgoMonster: algo.monster 🥷 Discord: discord.gg/NzM4te47DT #programming #algorithm #timecomplexity #datastructures #datastructure #coding #computerscience #binarysearch ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
programming horror
Просмотров 6 тыс.Год назад
🟪 Check out AlgoMonster: algo.monster 🥷 Discord: discord.gg/NzM4te47DT #programming #memes #codingmemes #programmingmemes ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
Leetcode Blind 75 Week 1 Made Simple: Expert Solution Part 1
Просмотров 2,4 тыс.Год назад
In this video, we will explain the solutions to the first six questions from Grind75 Week 1 questions. 🟪 Check out AlgoMonster: algo.monster 🥷 Discord: discord.gg/NzM4te47DT Intro: (0:00) Two Sum: (0:05) Valid Parentheses: (1:31) Merge Two Sorted Lists: (3:14) Best Time to Buy and Sell Stock: (4:30) Valid Palindrome: (5:50) Invert Binary Tree: (6:51) #grind75 #programming #leetcode #leetcodesol...
For the Love of God Don't Write Code Like This (Clean Code with Javascript examples)
Просмотров 14 тыс.Год назад
For the Love of God Don't Write Code Like This (Clean Code with Javascript examples)
ChatGPT Prompt Guide for LeetCode questions
Просмотров 2,4 тыс.Год назад
ChatGPT Prompt Guide for LeetCode questions
Unlock the Secrets of SQL Databases: How B-Trees Revolutionize Data Storage!
Просмотров 661Год назад
Unlock the Secrets of SQL Databases: How B-Trees Revolutionize Data Storage!
Why I left My $267,750 Job at Google
Просмотров 2,6 тыс.Год назад
Why I left My $267,750 Job at Google
Leetcode 869 Reordered Power of 2 | Google Interview Question | Python
Просмотров 374Год назад
Leetcode 869 Reordered Power of 2 | Google Interview Question | Python
Leetcode 1404 Number of Steps to Reduce a Number in Binary Representation to One | Python
Просмотров 1,5 тыс.Год назад
Leetcode 1404 Number of Steps to Reduce a Number in Binary Representation to One | Python
LeetCode 226 Invert Binary Tree | Python
Просмотров 427Год назад
LeetCode 226 Invert Binary Tree | Python
Monotonic Stack Data Structure Explained
Просмотров 53 тыс.Год назад
Monotonic Stack Data Structure Explained
LeetCode 959. Regions Cut By Slashes | Union-find | Python
Просмотров 2,6 тыс.Год назад
LeetCode 959. Regions Cut By Slashes | Union-find | Python
Design Parking Lot | Object Oriented System Design Question | Amazon Interview Question
Просмотров 25 тыс.Год назад
Design Parking Lot | Object Oriented System Design Question | Amazon Interview Question
LeetCode 937 Reorder Data in Log Files | Amazon Interview Question | Python
Просмотров 1,3 тыс.2 года назад
LeetCode 937 Reorder Data in Log Files | Amazon Interview Question | Python
Elon Musk's Twitter System Design Diagram Explained
Просмотров 2,6 тыс.2 года назад
Elon Musk's Twitter System Design Diagram Explained
Top 5 Mistakes to Avoid in Coding Interviews
Просмотров 1,7 тыс.2 года назад
Top 5 Mistakes to Avoid in Coding Interviews
Nice explanation, thanks. Quick question - Which software did you use for these animation, its quite cool :)
both dfs and bfs can be used to get the max depth of the tree,
Great summary, although the templates are a bit convoluted to me. It should be made easier to visualize at first glance.
This is an AI generated voice. It's actually not terrible, and I've seen other videos on this channel and you do know what you're talking about. So why did you decide to go with the generated voice, instead of your own?
bro whats with the music. am i on hold for tech support?
hilarious video
I can't think logic of an easy leetcode problems can't solve a single easy leetcode problem till now from 2 years I m learning 😖😖😖
Best if the best like 3b1b in Math ,your animations is in whole other league bro for dsa
17:54: Does this only apply to solutions where you limit the max size of the heap to k? Couldn’t you use a full-size minHeap, then pop k elements to get the same result of the k smallest numbers? I’m assuming there’s a reasoning behind it that I’m missing. Thank you for the content, this has been very helpful in studying.
Even I thought of your approach initially but I think it is done this way to save memory and for faster insert & remove operations - O(log k) instead of O(log n), given k < n always. So, for very large values of n and a small value for k, this approach would save significantly on both space and time.
The moving background in the video is quite distracting and makes it difficult to concentrate on the material being explained. When trying to read or understand technical concepts, the constant motion draws attention away from the content, making it harder to follow along.
I don't understand why the didn't just use the same algorithm for finding the longest common sub-sequence for the longest palindrome sub-sequence. Should just be able to take the input string as string 1, reverse it and then run the same code for the two strings.
This video is very misleading. Important information is left out and some of the examples used don’t really demonstrate the full use of the patterns. The template code is also very clunky. It almost seems like the person narrating the video hasn’t grinded any Leetcode problems before. Is this what you can expect of algomonster?
it's a 20 minutes video, what would you expect?
@ does it being 20 mins change what I said?
There is really no need for the background music, it's just annoying and distracting!
16:38 The background music is a huge mistake... it's very relaxing
Excellent! Thank you so much for this video. All of the data structures can be overwhelming to remember, you breaking them down into categories, with their use cases, and providing templates was so useful.
well this video worked, just signed up for the black Friday special :)
Thanks for posting that tutorial. So far 3 coding interviews had DFS. First one I think I completed successfully without knowing what DFS was (although could have been faster) and the interviewer said "Wow, it was as though invented DFS from scratch in this interview". Sadly wasn't hired to that position. Next was a color bucket photoshop style coding question, and next was a island sizes question or similar. Posting tutorials of all of those would be nice.
Glad it helped! And yes DFS is the most commonly used interview algo!
dont know why but feel little bit of confident by seeing some medium level could be solved by patterns
phenomenal bro, u got a talent for this
Slow down, it's not a race. Unless you don't understand what you are doing.
Much appreciation from self-learner!👍
hey man, am self-learner aswell, wanna collaborate?
I understood the video is legit when musk interviewed mark and asked the exact same question.
or just copy and paste the problem intro it and feed the code
In `DFS` function 16:07 path.pop() never execute.
Regarding Binary Search for the "Find Minimum in Rotated Sorted Array" problem, I'm a bit unsure if the boolean array approach works. For example, if we have the rotated array of [50, 60, 70, 80, 90, 10, 20, 30, 40], wouldn't the approach return 20 instead of 10?
Thank you so much.
You don't have to figure out the second dimension for the last problem because, we can solve it with a 1D array. Here's the code. class Solution: def canPartition(self, nums: List[int]) -> bool: ts = sum(nums) n = len(nums) if ts%2: return False ss = ts//2 dp = [0]*(ss+1) for j in nums: for i in range(ss,-1,-1): if dp[i]==1 and i+j<=ss: dp[i+j]=1 if j==i: dp[i]=1 return True if dp[ss] else False
what the fudge are you saying at 9:16
wow ! this gave so much clarity
thanks a lot man. never thought of solving leetcode as templates .this is really helpful.
This is what I was looking for!
Absolutely loved this video! Thanks a lot!
Hello, curious, how come the Vehicle had a method called parkInSpot(). Would that violate the Single Responsibility Principal from SOLID? Why is a vehicle class responsible for parking when it should be handled by something like a ParkingSpot class? Thanks for your insight!
Could you share some discount for your subscription?
For the TF question (binary search) you forgot to stipulate that the input only has false, then true (can’t do TFTF) Also, the vocal AI had a hiccup at the 9m mark lmao
input has to be monotonic, which mens F(0) cannot go after T(1)
Very helpful bro!
Unable to buy your course from India. It say "Merchant is non-compliant with RBI guidelines for recurring payments and e-mandate". And yes I have international payments on on my card
Hey Rohan, thanks so much for letting us know. Which bank are you using? There is an issue with subscription in India since we are a foreign entity. Could you send us an email at support@algo.monster and we can look into it.
Do you guys ask input size constraints in interviews?
I like how math is last resort
This helped me solve Next Greater element without looking at your code, thanks!
one of the best videos on the topic i’ve seen, thank you
For 10^8 inputs ? O(n) ?
O(1) or O(logN)
Leetcode has nothing to do with the real-world programming in 99% of cases.
Wrong
@rickyc46 tell me more about it.
Please wake up
I mean when you need to build scalable applications it will be used. Relational databases, pathfinding algorithms, making filters, recommendation algorithms, etc. But non-scalable ones don't really need them ig.
@@melophylic7469 Inventing algorithms? Cool. Most of us professional programmers don't ever do that stuff.
Thanks for the update, Anna! It is great that you are sharing your experience so that others can have hope.
Wtf are you blabbering about?
😂😂
Damn, man, your dependency hierarchy is all over the place here...
Why is there an AI voice over?
It's my cloned voice, which makes syncing with the animation easier. This was one of our earlier videos, and we were still learning, so the quality isn't the best haha. Thanks for sticking with it anyway!
Couldn’t you also go from left to right? You could store the indexes in the stack and as soon as you add an element greater than the element at the top of the stack, you keep removing the top until it’s equal or greater to the new element, while updating their values (sorry for the bad explanation)
where do i check this stuff out again?
algo.monster/
Best Platform