Code In Motion
Code In Motion
  • 53
  • 60 077
[Animated] LeetCode 33 Search in Rotated Sorted Array | Blind 75 | Binary Search
📚 14 LeetCode Patterns to ace any interview www.blog.codeinmotion.io/p/leetcode-patterns
🎬 Blind 75 Animated Playlist th-cam.com/play/PLHm8nzcbp3_19DiTlDg8QYvR-hN5jzPCp.html
👍🔔 If you find this tutorial helpful, like and subscribe!
🔗 LeetCode URL: leetcode.com/problems/search-in-rotated-sorted-array/description/
Today, we’re solving LeetCode 33 Search in Rotated Sorted Array in the Blind 75 list using Binary Search
🕒 Timestamps 🕒
0:00 - Problem Statement & Pre-reqs
1:45 - Modified Binary Search Cases
10:03 - Coding Implementation
#BinarySearch #Leetcode #Blind75
มุมมอง: 49

วีดีโอ

[Animated] LeetCode 153 Find Minimum in Rotated Sorted Array | Blind 75 | Binary Search
มุมมอง 1867 ชั่วโมงที่ผ่านมา
📚 14 LeetCode Patterns to ace any interview www.blog.codeinmotion.io/p/leetcode-patterns 🎬 Blind 75 Animated Playlist th-cam.com/play/PLHm8nzcbp3_19DiTlDg8QYvR-hN5jzPCp.html 👍🔔 If you find this tutorial helpful, like and subscribe! 🔗 LeetCode URL: leetcode.com/problems/find-minimum-in-rotated-sorted-array/description/ Today, we’re solving LeetCode 153: Find Minimum in Rotated Sorted Array in th...
[Animated] LeetCode 15 3Sum | Blind 75 | Two Pointer Technique
มุมมอง 1689 ชั่วโมงที่ผ่านมา
📚 14 LeetCode Patterns to ace any interview www.blog.codeinmotion.io/p/leetcode-patterns 🎬 Blind 75 Animated Playlist th-cam.com/play/PLHm8nzcbp3_19DiTlDg8QYvR-hN5jzPCp.html 👍🔔 If you find this tutorial helpful, like and subscribe! 🔗 LeetCode URL: leetcode.com/problems/3sum/description/ Today, we’re solving LeetCode 15 3Sum on the LeetCode Blind 75 list using the Two Pointer Technique 🕒 Timesta...
How to Start LeetCode in 2025
มุมมอง 5K14 ชั่วโมงที่ผ่านมา
How to Start LeetCode www.blog.codeinmotion.io/p/how-to-start-leetcode 📚 14 LeetCode Patterns to ace any interview www.blog.codeinmotion.io/p/leetcode-patterns 🎬 Blind 75 Animated Playlist th-cam.com/play/PLHm8nzcbp3_19DiTlDg8QYvR-hN5jzPCp.html 👍🔔 If you find this tutorial helpful, like and subscribe! In this video I'll show you EXACTLY how to start leetcoding as a beginner and start ACING you...
[Animated] LeetCode 76 Minimum Window Substring | Blind 75 | Sliding Window
มุมมอง 331วันที่ผ่านมา
📚 14 LeetCode Patterns to ace any interview www.blog.codeinmotion.io/p/leetcode-patterns 🎬 Blind 75 Animated Playlist th-cam.com/play/PLHm8nzcbp3_19DiTlDg8QYvR-hN5jzPCp.html 👍🔔 If you find this tutorial helpful, like and subscribe! 🔗 LeetCode URL: leetcode.com/problems/minimum-window-substring/description/ Today, we’re solving LeetCode 76 Minimum Window Substring | Blind 75 | Python | Sliding W...
[Animated] LeetCode 49 Group Anagrams | Blind 75 | Frequency Count | Hashmap
มุมมอง 230วันที่ผ่านมา
[Animated] LeetCode 49 Group Anagrams | Blind 75 | Frequency Count | Hashmap
[Animated] LeetCode 242 Valid Anagram | Blind 75 | Hashmap
มุมมอง 18514 วันที่ผ่านมา
[Animated] LeetCode 242 Valid Anagram | Blind 75 | Hashmap
[Animated] LeetCode 238 Product of Array Except Self | Blind 75 | Python
มุมมอง 25414 วันที่ผ่านมา
[Animated] LeetCode 238 Product of Array Except Self | Blind 75 | Python
[Animated] LeetCode 19 Remove Nth Node From End of List | Blind 75
มุมมอง 25014 วันที่ผ่านมา
[Animated] LeetCode 19 Remove Nth Node From End of List | Blind 75
[Animated] LeetCode 23 Merge k Sorted Lists | Blind 75 | Merge Sort & Heap
มุมมอง 33621 วันที่ผ่านมา
[Animated] LeetCode 23 Merge k Sorted Lists | Blind 75 | Merge Sort & Heap
[Animated] LeetCode 124 Binary Tree Maximum Path Sum | Blind 75
มุมมอง 39321 วันที่ผ่านมา
[Animated] LeetCode 124 Binary Tree Maximum Path Sum | Blind 75
[Animated] LeetCode 21 Merge Two Sorted Lists | Blind 75
มุมมอง 69921 วันที่ผ่านมา
[Animated] LeetCode 21 Merge Two Sorted Lists | Blind 75
[Animated] LeetCode 338 Counting Bits | Blind 75 | Dynamic Programming
มุมมอง 23021 วันที่ผ่านมา
[Animated] LeetCode 338 Counting Bits | Blind 75 | Dynamic Programming
[Animated] LeetCode 371 Sum of Two Integers | Blind 75 | Python | Bitwise Operations
มุมมอง 59728 วันที่ผ่านมา
[Animated] LeetCode 371 Sum of Two Integers | Blind 75 | Python | Bitwise Operations
[Animated] LeetCode 190 Reverse Bits | Blind 75
มุมมอง 375หลายเดือนก่อน
[Animated] LeetCode 190 Reverse Bits | Blind 75
[Animated] LeetCode 268 Missing Number | Blind 75
มุมมอง 374หลายเดือนก่อน
[Animated] LeetCode 268 Missing Number | Blind 75
[Animated] LeetCode 48 Rotate Image | Blind 75
มุมมอง 409หลายเดือนก่อน
[Animated] LeetCode 48 Rotate Image | Blind 75
[Animated] LeetCode 191 Number of 1 Bits | Blind 75
มุมมอง 261หลายเดือนก่อน
[Animated] LeetCode 191 Number of 1 Bits | Blind 75
The only LeetCode resource you'll ever need
มุมมอง 3.1Kหลายเดือนก่อน
The only LeetCode resource you'll ever need
[Animated] LeetCode 54 Spiral Matrix | Blind 75
มุมมอง 458หลายเดือนก่อน
[Animated] LeetCode 54 Spiral Matrix | Blind 75
[Animated] LeetCode 206 Reverse Linked List | Blind 75
มุมมอง 415หลายเดือนก่อน
[Animated] LeetCode 206 Reverse Linked List | Blind 75
LeetCode was HARD until I learned these 14 patterns! | Coding Templates and Animations
มุมมอง 29Kหลายเดือนก่อน
LeetCode was HARD until I learned these 14 patterns! | Coding Templates and Animations
[Animated] LeetCode 141 Linked List Cycle | Blind 75 | Slow and Fast Pointers
มุมมอง 305หลายเดือนก่อน
[Animated] LeetCode 141 Linked List Cycle | Blind 75 | Slow and Fast Pointers
[Animated] LeetCode 424 Longest Repeating Character Replacement | Blind 75 | Sliding Window
มุมมอง 791หลายเดือนก่อน
[Animated] LeetCode 424 Longest Repeating Character Replacement | Blind 75 | Sliding Window
[Animated] LeetCode 226 Invert Binary Tree | Blind 75 | Python
มุมมอง 293หลายเดือนก่อน
[Animated] LeetCode 226 Invert Binary Tree | Blind 75 | Python
[Animated] LeetCode 152 Maximum Product Subarray | Blind 75
มุมมอง 466หลายเดือนก่อน
[Animated] LeetCode 152 Maximum Product Subarray | Blind 75
[Animated] LeetCode 104 Maximum Depth of Binary Tree | Blind 75
มุมมอง 330หลายเดือนก่อน
[Animated] LeetCode 104 Maximum Depth of Binary Tree | Blind 75
[Animated] LeetCode 100 Same Tree | Blind 75
มุมมอง 174หลายเดือนก่อน
[Animated] LeetCode 100 Same Tree | Blind 75
[Animated] LeetCode 3 Longest Substring Without Repeating Characters | Blind 75 | Sliding Window
มุมมอง 705หลายเดือนก่อน
[Animated] LeetCode 3 Longest Substring Without Repeating Characters | Blind 75 | Sliding Window
[Animated] LeetCode 1 Two Sum | Blind 75 | Hashmap
มุมมอง 702หลายเดือนก่อน
[Animated] LeetCode 1 Two Sum | Blind 75 | Hashmap

ความคิดเห็น

  • @SandyCr7
    @SandyCr7 6 ชั่วโมงที่ผ่านมา

    goat

  • @subramanya_l
    @subramanya_l 6 ชั่วโมงที่ผ่านมา

    Best

  • @JDK_24
    @JDK_24 6 ชั่วโมงที่ผ่านมา

    Could u make videos on recursion for beginners. Would be gr8

  • @adithyapaib
    @adithyapaib 6 ชั่วโมงที่ผ่านมา

    Best

  • @swordain
    @swordain วันที่ผ่านมา

    I found your site on reddit and it brought me to your main video (with bgm) This is very helpful, thanks!

    • @CodeInMotion-IO
      @CodeInMotion-IO 22 ชั่วโมงที่ผ่านมา

      Glad it was helpful!

  • @debojitmandal8670
    @debojitmandal8670 วันที่ผ่านมา

    Bro where is your permutation and combination patterns

    • @CodeInMotion-IO
      @CodeInMotion-IO 22 ชั่วโมงที่ผ่านมา

      Instead of splitting these out into different patterns, I've included them as part of backtracking since they fit under that paradigm of exploring all possible paths and pruning based on specific conditions.

    • @debojitmandal8670
      @debojitmandal8670 17 ชั่วโมงที่ผ่านมา

      @CodeInMotion-IO oh thnks I should have watched the entire video my bad 😅

  • @dragonslayerf4205
    @dragonslayerf4205 2 วันที่ผ่านมา

    Really good explanation!

  • @abhishekchadalavada544
    @abhishekchadalavada544 2 วันที่ผ่านมา

    My first social platform comment : please don't ever stop your animated solutions. These videos are really encouraging for me to spend more time in coding . Thank you.

    • @CodeInMotion-IO
      @CodeInMotion-IO 2 วันที่ผ่านมา

      I’m happy it’s helpful to you!

  • @PrinceDavid
    @PrinceDavid 2 วันที่ผ่านมา

    Python is great but if you're doing a mobile developer role you will probably have to code in Swift or Kotlin in your interviews. I have to use Swift and it definitely has it's challenges but it works out once you get used to it. Still really great video to help everyone get started this year.

    • @CodeInMotion-IO
      @CodeInMotion-IO 2 วันที่ผ่านมา

      Good point! Though even for mobile roles I think learning python is a net positive for anyone’s career!

  • @shariqsd
    @shariqsd 2 วันที่ผ่านมา

    Awesome explanation and easy to understand for beginners,.. I really appreciate 🫡

    • @CodeInMotion-IO
      @CodeInMotion-IO 2 วันที่ผ่านมา

      No problem! Welcome to the channel!

  • @SandeepPadarthy1032
    @SandeepPadarthy1032 2 วันที่ผ่านมา

    I think correct formula would be, interval between max(a'start, b'start) and min(a'end, b'end)

    • @CodeInMotion-IO
      @CodeInMotion-IO 2 วันที่ผ่านมา

      When merging an interval you want to take the minimum start and maximum ends, it helps to see this visually since you want the merged interval to be maximized in size

  • @PrinceDavid
    @PrinceDavid 2 วันที่ผ่านมา

    Leetcode gives me anxiety but the music in the background and presentation in the video really help me chill out. You explain everything so simply, thank you for this! I never seen Dynamic Programming explained so nicely.

    • @CodeInMotion-IO
      @CodeInMotion-IO 2 วันที่ผ่านมา

      Im glad this is helping you! Welcome to the channel!

  • @zylics5267
    @zylics5267 2 วันที่ผ่านมา

    This video is 100% gold

    • @CodeInMotion-IO
      @CodeInMotion-IO 2 วันที่ผ่านมา

      Im glad its helping you! Welcome to the channel!

  • @TanmayPathak22
    @TanmayPathak22 3 วันที่ผ่านมา

    Great work man!

  • @JDK_24
    @JDK_24 3 วันที่ผ่านมา

    🔥🙏

  • @siddarthareddyb6506
    @siddarthareddyb6506 3 วันที่ผ่านมา

    Great

  • @siddarthareddyb6506
    @siddarthareddyb6506 3 วันที่ผ่านมา

    Nice explanation

    • @CodeInMotion-IO
      @CodeInMotion-IO 3 วันที่ผ่านมา

      Welcome to the channel!

  • @knightridergaming2855
    @knightridergaming2855 3 วันที่ผ่านมา

    Worth content❤

  • @VibhorMittal
    @VibhorMittal 3 วันที่ผ่านมา

    2:25 Big-Oh (O) notation is implicitly always used for worst case time complexity. For Average case, notation used is Big-Theta not Big-Oh. There are three separate notations for measuring time complexity for this specific purpose (Omega, Theta and Oh). But, today all of that is lost due to half-knowledge or quick studies just for clearing the interviews without understanding something. Ideally, if someone is saying.. something is O(n) that means its worst case performance is linear.

    • @CodeInMotion-IO
      @CodeInMotion-IO 3 วันที่ผ่านมา

      You’re correct with the terminology. Ive kept big oh for the cheat sheets since its widely used and didnt want to steer the video in a different direction. Although technically you can still use big oh for the avg case, theta provides a tighter bound. I wanted to save this topic for a different video, an overview on big oh/theta/omega as a whole. Thanks for your input!

  • @yilialu9845
    @yilialu9845 3 วันที่ผ่านมา

    The animation very helpful thank you!!

  • @CodeInMotion-IO
    @CodeInMotion-IO 3 วันที่ผ่านมา

    Solution available in ALL languages leetcode.com/problems/3sum/solutions/6226543/animated-video-two-pointers-template-vis-smyj/

  • @JDK_24
    @JDK_24 4 วันที่ผ่านมา

    Bro, do it in cpp if possible 🙏 Also could u make a structured dsa course for beginners.it would b gr8.

    • @CodeInMotion-IO
      @CodeInMotion-IO 3 วันที่ผ่านมา

      I have a written LeetCode solution for all my videos! Check out leetcode.com/problems/3sum/solutions/6226543/animated-video-two-pointers-template-vis-smyj/ for the solution in all languages

  • @agent0963
    @agent0963 4 วันที่ผ่านมา

    You have given me confidence man! Thank you

    • @CodeInMotion-IO
      @CodeInMotion-IO 3 วันที่ผ่านมา

      Awesome, im so glad! Welcome to the channel!

  • @user_unknown04
    @user_unknown04 4 วันที่ผ่านมา

    Brother, I trust in YOU !

    • @CodeInMotion-IO
      @CodeInMotion-IO 3 วันที่ผ่านมา

      Welcome to the channel!

  • @girishanker3796
    @girishanker3796 5 วันที่ผ่านมา

    Thank you🙏

  • @priyanshshah6905
    @priyanshshah6905 5 วันที่ผ่านมา

    im confused, im going through neetcode 150, is backtracking just a form of dp, because it is used to calculate the combinations of things?

    • @CodeInMotion-IO
      @CodeInMotion-IO 4 วันที่ผ่านมา

      Backtracking is not DP. In DP you reuse previous results to formulate your global result. In backtracking, you need to try possible solutions (brute force) and prune paths (reduce the search space efficiently) recursively. Watch my video on backtracking, or better yet my youtube videos on how to start leetcode and leetcode patterns.

  • @farhanrejwan
    @farhanrejwan 5 วันที่ผ่านมา

    amazing solution! thanks!

  • @Lullaby8143
    @Lullaby8143 5 วันที่ผ่านมา

    I suggest just doing 10 mediums and after that follow this road up or technique. Minimum 10 mediums.

    • @CodeInMotion-IO
      @CodeInMotion-IO 4 วันที่ผ่านมา

      I would still suggest following this guide before doing 10 mediums since many people can't even solve easy problems when starting out. It's always good to get the fundamentals first.

  • @jana_m
    @jana_m 5 วันที่ผ่านมา

    I started with binary search and now linkedlist. Do I go with data structure wise or with pattern wise ?

    • @CodeInMotion-IO
      @CodeInMotion-IO 4 วันที่ผ่านมา

      I'd suggest following my blog and ordering in this video. Start with refreshing up on data structures and ensuring you understand all operations and time complexities. Then move on to LeetCode Patterns

  • @amolbais4805
    @amolbais4805 5 วันที่ผ่านมา

    Feeling confident by your content, that i will master DSA this year 🔥

  • @amolbais4805
    @amolbais4805 5 วันที่ผ่านมา

    Thank you so much

  • @Bhavishya_est
    @Bhavishya_est 5 วันที่ผ่านมา

    3:17 Just wanted to share a fun Fact. My sister had an on call interview with a Google recruiter and the recruiter insisted on using any language other than Python, dONT KNOW WHY?. my sister has a Background in AI-Ml that's why she was habitual with Python.

    • @CodeInMotion-IO
      @CodeInMotion-IO 5 วันที่ผ่านมา

      Interesting, I’ve never heard of this. In fact, many interviewers prefer python too since its more readable and concise.

    • @Bhavishya_est
      @Bhavishya_est 5 วันที่ผ่านมา

      @@CodeInMotion-IO Yeah, that's a pretty weird case. By the way, I live here in India, and she was being interviewed for an intern position. i guess they wanted to check low level language understanding.

  • @jcc5018
    @jcc5018 5 วันที่ผ่านมา

    my question is, Are any of these things used in real world applications? Not sure if this is typical for all languages, or just certain types of programming, but I don't think I have ever come anywhere close to having these sorts of problems in my project.

    • @CodeInMotion-IO
      @CodeInMotion-IO 5 วันที่ผ่านมา

      DP is generally not used on the job since its mostly used to optimize complex algorithms. Most of a SWEs day to day is more so feature oriented development rather than improving complex algorithms and efficiency

    • @valentennnx
      @valentennnx 5 วันที่ผ่านมา

      A lot of things used in competitive programming are not usually used in real life. But a good example of DP used in real life is levenshtein distance, the algorithm used in text auto correction.

    • @jcc5018
      @jcc5018 5 วันที่ผ่านมา

      @@CodeInMotion-IO i see. I've always been hesitent to even consider any programming jobs, cause although I am personally building a rather large website myself, I still have so much to learn, then I see these leet code things, and I'm like, I don't have a clue. If I had any of that on an interview, id probably get up and walk out. I program with laravel and teaching myself as I go. So perhaps a different skillset.

    • @play005517
      @play005517 5 วันที่ผ่านมา

      If your project only involves piecing together different modules and libraries then no, you are not probably using fancy tricks But in my experience even simple automating scripts can use some leetcode level common tricks to speed up things because you intuitively notice patterns and tricks work for that patterns For a repeatedly called function that aren't going to change? You would want to cache/memoize it. Is it DP? You dislike the built-in photo picker come with your NAS and you want to find a photo taken nearest the date you remember, sure you can invoke a system find call for the file name, but if it doesn't exist to find the nearest newer or older one, you could read everything and do a linear search But what if you don't want your little project to stutter every time you press the search button ? A binary search would make it snappy

  • @kartikbhat1196
    @kartikbhat1196 5 วันที่ผ่านมา

    the given lnks are not working

    • @CodeInMotion-IO
      @CodeInMotion-IO 5 วันที่ผ่านมา

      Which links? Ive tested them all

  • @SeanLazer
    @SeanLazer 5 วันที่ผ่านมา

    >Use descriptive variable names Thanks a lot I just failed my Go interview

  • @rony-vn7ep
    @rony-vn7ep 6 วันที่ผ่านมา

    but why aren't they asking DP ?

    • @CodeInMotion-IO
      @CodeInMotion-IO 6 วันที่ผ่านมา

      DP has not been a good indicator of how well a SWE would perform and results in many good candidates not getting the roles

    • @Sanchuniathon384
      @Sanchuniathon384 5 วันที่ผ่านมา

      @@CodeInMotion-IO In other words, even most decent SWEs don't understand DP? 🤣

    • @CodeInMotion-IO
      @CodeInMotion-IO 4 วันที่ผ่านมา

      @@Sanchuniathon384 You could definitely argue that point! DP is more mathematical, but does not indicate success of a SWE career-wise.

  • @akshaybalamurugan
    @akshaybalamurugan 6 วันที่ผ่านมา

    This Channel is going to blow in a couple of days. This is truly amazing and so helpful for leetcode beginners. You are Awesome !

    • @CodeInMotion-IO
      @CodeInMotion-IO 6 วันที่ผ่านมา

      Im glad you find my content helpful! Welcome to the channel!

  • @MohanRaja7777
    @MohanRaja7777 6 วันที่ผ่านมา

    i just came across randomly wow very nice with animation as a average student i can able to understand top notch !! keep going bro

    • @CodeInMotion-IO
      @CodeInMotion-IO 6 วันที่ผ่านมา

      Thank you! Welcome to the community!

  • @prab231
    @prab231 6 วันที่ผ่านมา

    Why is this channel not huge? Massive fan. Please dont stop uploading!

    • @CodeInMotion-IO
      @CodeInMotion-IO 6 วันที่ผ่านมา

      Thank you so much for the kind words! Im glad its helping you!

  • @congdatt
    @congdatt 6 วันที่ผ่านมา

    Many thanks Sir <333

  • @xsdash
    @xsdash 6 วันที่ผ่านมา

    Thanks for your efforts. This is a much better approach for sure.

  • @CodeInMotion-IO
    @CodeInMotion-IO 6 วันที่ผ่านมา

    Check out the blog with all the studying resources! www.blog.codeinmotion.io/p/how-to-start-leetcode and subscribe for more!

  • @feelingdedinside
    @feelingdedinside 7 วันที่ผ่านมา

    About the prune problem . Can we just sort and stop recursion early?

    • @CodeInMotion-IO
      @CodeInMotion-IO 6 วันที่ผ่านมา

      You could for this specific problem. Im just demonstrating how pruning and backtracking work!

  • @mr123leafman
    @mr123leafman 9 วันที่ผ่านมา

    Nice animations! This would be alot more informative if you defined the terms before you used them. For example, i dont know what the current node is!

    • @psychoedge
      @psychoedge 9 วันที่ผ่านมา

      This

    • @CodeInMotion-IO
      @CodeInMotion-IO 6 วันที่ผ่านมา

      Appreciate the feedback! I have a more in depth longer video that goes through all the patterns more slowly

  • @farhanrejwan
    @farhanrejwan 10 วันที่ผ่านมา

    this is so helpful! thanks a lot!

    • @CodeInMotion-IO
      @CodeInMotion-IO 10 วันที่ผ่านมา

      I'm glad it helped! Welcome to the community!

  • @CodeInMotion-IO
    @CodeInMotion-IO 10 วันที่ผ่านมา

    Subscribe to ACE your interviews!

  • @CodeInMotion-IO
    @CodeInMotion-IO 10 วันที่ผ่านมา

    Subscribe to ace your tech interviews!

  • @eunaosounerd1072
    @eunaosounerd1072 11 วันที่ผ่านมา

    I MUST be a monkey here. The problem states "You can choose any character of the string and change it to any other uppercase English character." but you didn't change it with any character at all. If I get this problem statement in an interview I'd never, ever, ever have thought that I wouldn't have to swap any position of the string with any other letter from A-Z. I understand your solution but this problem statement is very confusing with the ask

    • @CodeInMotion-IO
      @CodeInMotion-IO 11 วันที่ผ่านมา

      It's definitely tricky! You want to focus on realizing this is a sliding window pattern due to finding the "max substring" and then figure out the condition to use within the window. I have a video about these patterns you should check out and more content to recognize leetcode patterns