AlgoMonster
AlgoMonster
  • Видео 34
  • Просмотров 523 926
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
Просмотров: 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
How to use ChatGPT with Leetcode
Просмотров 2,7 тыс.Год назад
How to use ChatGPT with Leetcode
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
Two Pointers Technique
Просмотров 13 тыс.2 года назад
Two Pointers Technique
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

Комментарии

  • @SumitJain-r5f
    @SumitJain-r5f 13 часов назад

    Nice explanation, thanks. Quick question - Which software did you use for these animation, its quite cool :)

  • @JoanWang-t1w
    @JoanWang-t1w 5 дней назад

    both dfs and bfs can be used to get the max depth of the tree,

  • @ColeHartman1
    @ColeHartman1 5 дней назад

    Great summary, although the templates are a bit convoluted to me. It should be made easier to visualize at first glance.

  • @SkandiaAUS
    @SkandiaAUS 6 дней назад

    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?

  • @MegaFatPaws
    @MegaFatPaws 7 дней назад

    bro whats with the music. am i on hold for tech support?

  • @SUMITKAUSHIK1000
    @SUMITKAUSHIK1000 7 дней назад

    hilarious video

  • @kishorpustake6682
    @kishorpustake6682 11 дней назад

    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 😖😖😖

  • @iamsaranhere
    @iamsaranhere 12 дней назад

    Best if the best like 3b1b in Math ,your animations is in whole other league bro for dsa

  • @skazahay
    @skazahay 14 дней назад

    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.

    • @yaphetsgg4934
      @yaphetsgg4934 8 дней назад

      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.

  • @aditipatade7755
    @aditipatade7755 15 дней назад

    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.

  • @kevinbarnett1211
    @kevinbarnett1211 18 дней назад

    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.

  • @omai225
    @omai225 18 дней назад

    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?

    • @crockz0r
      @crockz0r 12 дней назад

      it's a 20 minutes video, what would you expect?

    • @omai225
      @omai225 11 дней назад

      @ does it being 20 mins change what I said?

  • @sarahany477
    @sarahany477 21 день назад

    There is really no need for the background music, it's just annoying and distracting!

  • @robbyoconnor
    @robbyoconnor Месяц назад

    16:38 The background music is a huge mistake... it's very relaxing

  • @ytrg1
    @ytrg1 Месяц назад

    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.

  • @brandonbraner
    @brandonbraner Месяц назад

    well this video worked, just signed up for the black Friday special :)

  • @OMNI_INFINITY
    @OMNI_INFINITY Месяц назад

    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.

    • @algo.monster
      @algo.monster Месяц назад

      Glad it helped! And yes DFS is the most commonly used interview algo!

  • @GauravSrivastava-c5q
    @GauravSrivastava-c5q Месяц назад

    dont know why but feel little bit of confident by seeing some medium level could be solved by patterns

  • @sparrow2068
    @sparrow2068 Месяц назад

    phenomenal bro, u got a talent for this

  • @ed2023bc
    @ed2023bc Месяц назад

    Slow down, it's not a race. Unless you don't understand what you are doing.

  • @ivmmos
    @ivmmos Месяц назад

    Much appreciation from self-learner!👍

    • @existentialism_01
      @existentialism_01 24 дня назад

      hey man, am self-learner aswell, wanna collaborate?

  • @saivol6462
    @saivol6462 Месяц назад

    I understood the video is legit when musk interviewed mark and asked the exact same question.

  • @Dispnser
    @Dispnser Месяц назад

    or just copy and paste the problem intro it and feed the code

  • @AmitNayekamit006
    @AmitNayekamit006 Месяц назад

    In `DFS` function 16:07 path.pop() never execute.

  • @ricardosilva3482
    @ricardosilva3482 Месяц назад

    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?

  • @jaskiratsood1643
    @jaskiratsood1643 Месяц назад

    Thank you so much.

  • @mcbotface
    @mcbotface Месяц назад

    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

  • @Apollon609
    @Apollon609 Месяц назад

    what the fudge are you saying at 9:16

  • @manishmahajan6094
    @manishmahajan6094 2 месяца назад

    wow ! this gave so much clarity

  • @sahiljain5979
    @sahiljain5979 2 месяца назад

    thanks a lot man. never thought of solving leetcode as templates .this is really helpful.

  • @PranavRPise
    @PranavRPise 2 месяца назад

    This is what I was looking for!

  • @nathsai1658
    @nathsai1658 2 месяца назад

    Absolutely loved this video! Thanks a lot!

  • @Waruto
    @Waruto 2 месяца назад

    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!

  • @mobiledevelopmentmastery2024
    @mobiledevelopmentmastery2024 2 месяца назад

    Could you share some discount for your subscription?

  • @TheGIQ123
    @TheGIQ123 2 месяца назад

    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

    • @algo.monster
      @algo.monster 2 месяца назад

      input has to be monotonic, which mens F(0) cannot go after T(1)

  • @Aman-xo4yx
    @Aman-xo4yx 2 месяца назад

    Very helpful bro!

  • @rohan637
    @rohan637 2 месяца назад

    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

    • @algo.monster
      @algo.monster 2 месяца назад

      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.

  • @EverAfterBreak2
    @EverAfterBreak2 2 месяца назад

    Do you guys ask input size constraints in interviews?

  • @farpurple
    @farpurple 2 месяца назад

    I like how math is last resort

  • @Brxndz_
    @Brxndz_ 2 месяца назад

    This helped me solve Next Greater element without looking at your code, thanks!

  • @xEveNxThExOdds
    @xEveNxThExOdds 2 месяца назад

    one of the best videos on the topic i’ve seen, thank you

  • @pranavsharma7479
    @pranavsharma7479 2 месяца назад

    For 10^8 inputs ? O(n) ?

  • @ml_serenity
    @ml_serenity 2 месяца назад

    Leetcode has nothing to do with the real-world programming in 99% of cases.

    • @rickyc46
      @rickyc46 Месяц назад

      Wrong

    • @ml_serenity
      @ml_serenity Месяц назад

      @rickyc46 tell me more about it.

    • @aakashsrivastava5557
      @aakashsrivastava5557 Месяц назад

      Please wake up

    • @melophylic7469
      @melophylic7469 Месяц назад

      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.

    • @ml_serenity
      @ml_serenity Месяц назад

      @@melophylic7469 Inventing algorithms? Cool. Most of us professional programmers don't ever do that stuff.

  • @stanrobertson
    @stanrobertson 2 месяца назад

    Thanks for the update, Anna! It is great that you are sharing your experience so that others can have hope.

    • @KushLemon
      @KushLemon Месяц назад

      Wtf are you blabbering about?

  • @sangu3939
    @sangu3939 2 месяца назад

    😂😂

  • @nhbknhb
    @nhbknhb 2 месяца назад

    Damn, man, your dependency hierarchy is all over the place here...

  • @gmoney_swag1274
    @gmoney_swag1274 2 месяца назад

    Why is there an AI voice over?

    • @algo.monster
      @algo.monster 2 месяца назад

      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!

  • @gmoney_swag1274
    @gmoney_swag1274 2 месяца назад

    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)

  • @IceGamerification
    @IceGamerification 2 месяца назад

    where do i check this stuff out again?

  • @aliadel1723
    @aliadel1723 2 месяца назад

    Best Platform