Amazon Coding Question - Insert Delete GetRandom O(1)

Поділитися
Вставка
  • Опубліковано 29 січ 2025

КОМЕНТАРІ • 36

  • @rohitvishwakarma1238
    @rohitvishwakarma1238 4 роки тому +6

    I have been following different youtube videos for my leetcode help and I must admit your's explanation is the best!! Your explanation for any problem is so clear and concise. The animation, the easy to understand code, the way you take example test case and go through its every part without skipping any. Time and space complexity explanation. Everything is so perfect. Thank you so much! Keep up the good work :)

  • @hypnotic9595
    @hypnotic9595 Рік тому

    You have an amazing explanation man! Saw this question on a mock interview and was wondering how it would be solved in Java, as I didn't know whether you could use an ArrayList. Turns out you explained it perfectly in this video! Thanks!

  • @bharathwajsrinivasan8485
    @bharathwajsrinivasan8485 4 роки тому +1

    Love your work brother ! Best youtube channel for leetcode problems. Very underrated in terms of views! Pls keep uploading more problems... thanks!

  • @aradhanarana9592
    @aradhanarana9592 4 роки тому

    Very nice and easy way of explaining the solution. Underrated in terms of views. Please upload more problems of leetcode.

  • @shubhammittalSHM
    @shubhammittalSHM 3 роки тому

    I have become a fan of you! Such crystal clear explanation of some really complex problems.

  • @juliahuanlingtong6757
    @juliahuanlingtong6757 3 роки тому

    The overriding is pretty neat. I thought swaping with last element as first, but overriding is even better! Thumbs up

  • @rajdeepmajumder4697
    @rajdeepmajumder4697 4 роки тому +1

    Crystal clear explanation Michael sir!! Continue this hard work😊😊😊

  • @shalsteven
    @shalsteven 3 роки тому

    Why we need to replace the value that will be removed with the last value in the array?
    Let's say our array is [1,2,3,4,5]. We want to remove 3. The resulted array will be [1,2,5,4,5]?

    • @AlgosWithMichael
      @AlgosWithMichael  3 роки тому +1

      Because removing from the end of an array list is O(1) which is a requirement for our delete function

  • @tathagatnegi5923
    @tathagatnegi5923 4 роки тому +1

    Best explanation I have ever seen .. thanks to yt recommendations 👍 thanks

  • @shantanushende6
    @shantanushende6 3 роки тому

    The error bg sound! cracked me up!

  • @rohan-rj1ft
    @rohan-rj1ft 3 роки тому

    simple, straightforward, and easy! thanks

  • @yy-gf7ze
    @yy-gf7ze 3 роки тому

    Amazing explanation. You are the man!

  • @Darkstorm12321
    @Darkstorm12321 3 роки тому

    You are a good person

  • @saketbarnawal2167
    @saketbarnawal2167 2 роки тому

    well explained !

  • @Shellyanne5
    @Shellyanne5 4 роки тому

    Wow!! Explained perfectly

  • @sahilattri51
    @sahilattri51 3 роки тому

    You are the awesomest!!!

  • @ktechlabs
    @ktechlabs 4 роки тому

    Nice explaination Michael. Thanks. Really liked your keyboard sound, If don't mind can you please share the brand and model for the same. Thanks. :)

    • @AlgosWithMichael
      @AlgosWithMichael  4 роки тому +1

      Thank you! This is the keyboard. www.amazon.com/Cooler-Master-MasterKeys-Mechanical-Keyboard/dp/B01D3BDNF6

  • @krishnapidatala4127
    @krishnapidatala4127 4 роки тому

    Excellent explanation. Why don't you make a course on Udemy? We are missing any course with this level of detail.

    • @AlgosWithMichael
      @AlgosWithMichael  4 роки тому +1

      Thank you! And I have thought about doing some super in-depth courses, but it would just depend on what everyone wants. Glad to hear you are in support of it!

  • @naarayanmohan5757
    @naarayanmohan5757 3 роки тому

    well explained

  • @anniet.993
    @anniet.993 3 роки тому

    thank you!