Static Arrays, Dynamic Arrays, and Strings - Big O Complexity - DSA Course in Python Lecture 2

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

КОМЕНТАРІ • 44

  • @GregHogg
    @GregHogg  4 місяці тому +7

    Master Data Structures & Algorithms For FREE at AlgoMap.io!

  • @splinterius
    @splinterius 5 місяців тому +10

    Thank you so much for that course. I really enjoy watching it. I watched a lots of your solutions to leetcode problems, but sometimes I don't have any idea whats going on. I think this series will help me understand more about algorithms. Thank you Greg 🙂

    • @GregHogg
      @GregHogg  4 місяці тому +2

      Sorry for the slow reply, really glad you've been enjoying it!

  • @sudipdutta6117
    @sudipdutta6117 4 місяці тому +4

    Keep this playlist going brother . Really very healpful for all python students . Keep It up.

  • @theshaikhanas840
    @theshaikhanas840 2 місяці тому +7

    Day 3 of being consistent to the DSA playlist

    • @hk254lyt8
      @hk254lyt8 Місяць тому +1

      One month later. Did you master it?

    • @theshaikhanas840
      @theshaikhanas840 Місяць тому

      @hk254lyt8 in process

    • @adithyabablu7766
      @adithyabablu7766 16 днів тому

      ​@@hk254lyt8 No he is dead after this session 😢😢

  • @CPAbhinav-l6r
    @CPAbhinav-l6r 2 місяці тому

    At 15:06, modifying an index in a string takes O(n) and not O(1) as it creates a copy of the initial string first and then modifies that particular index.
    Btw, really loving AlgoMap and your videos. Great work!

    • @HoHhoch
      @HoHhoch Місяць тому

      1. He's talking about an array at 15:06, not a string.
      2. Before getting to that point he already said that strings are immutable, and that most operations (including appending or modifying an index) are O(n) for them.

  • @richardpro8927
    @richardpro8927 5 місяців тому +2

    This is the kind of course I am would be ready for pay for ❤ 😅
    Please continue this series we need more

    • @GregHogg
      @GregHogg  5 місяців тому +2

      Haha luckily it's free!

    • @richardpro8927
      @richardpro8927 5 місяців тому

      @@GregHogg Lucky me 🤞 🤞

  • @db5552
    @db5552 5 днів тому

    Thank you so much bro! I'm following from IG to here. :>>

  • @dhanushm9854
    @dhanushm9854 3 місяці тому +1

    @GregHogg I really like the way you explain the concepts, it will be more useful if you do lectures on Java too. I hope your java lectures in future .

  • @Pzpr12
    @Pzpr12 2 місяці тому +3

    @GregHogg - U didn't cover ArrayList concept in this DSA course as it is important in dymanic array right?

  • @ROHANSHARMA-fy2sf
    @ROHANSHARMA-fy2sf 4 місяці тому

    i'm from India now i can say you can defeat the Indian teacher , but this is my first video and loved it .
    😍😇👌👍

  • @physicsfaith
    @physicsfaith 4 місяці тому

    Loving the series. Thanks!

    • @GregHogg
      @GregHogg  4 місяці тому

      Glad to hear it!

  • @mrghost0006
    @mrghost0006 5 місяців тому +1

    Nice one looking forward to more vd's🙄

  • @firdousProgrammer
    @firdousProgrammer 4 місяці тому

    Python continues to be the awesome :B

  • @nassirali1737
    @nassirali1737 3 місяці тому

    Hi Greg
    Thank you for the course, I really enjoyed it , I just want to ask if you can post a video where you talk about your career path from high school to what you've reached now .
    Warm greetings from Morocco

  • @Mohamed-i3n
    @Mohamed-i3n 4 місяці тому +1

    I finished python basics ,functional and oop after this course can I start solve problems in leetcode and can please make vide for machine learning roadmap with resources please and thank U ❤️

  • @arnolddezilva4388
    @arnolddezilva4388 4 місяці тому

    What took are you using for all the scetching if you dont mind me asking . Thanks for the amazing videosb

  • @roshanrosh7416
    @roshanrosh7416 8 днів тому

    guys can anyone say what is the type of whiteboard that he uses please?

  • @rolandovillcaarias5112
    @rolandovillcaarias5112 5 місяців тому

    Hi Greg, could please make a video to explain how these concepts "hashing, __eq__ method, and immutability" work together under hood?

    • @GregHogg
      @GregHogg  4 місяці тому +1

      Yep working on it haha

  • @edudictivecoder464
    @edudictivecoder464 5 місяців тому

    To get 5 from array we can use binary search which will give nlogn time will that be good idea over 5 in arr??

    • @GregHogg
      @GregHogg  4 місяці тому +1

      Yes you can use binary search in log time if it's sorted

    • @edudictivecoder464
      @edudictivecoder464 4 місяці тому

      @@GregHogg thanks and I get your LinkedIn sir want to be in your connection

  • @Yihao.
    @Yihao. 11 днів тому

    Is this for beginners

  • @randomeditsboy
    @randomeditsboy 3 місяці тому

    Hey Greg! You can append an element in a string like..
    s = "hello"
    s += "z"
    print(s)
    we didn't make a new variable but just added "z" in s. Correct me if I'm wrong

    • @GregHogg
      @GregHogg  3 місяці тому +2

      Well that doesn't really append it still makes a copy and adds the letter but the syntax is quick yes

  • @rajeshkannan8608
    @rajeshkannan8608 3 місяці тому

    How to delete an element not at the end in array?

    • @Ak-ggs
      @Ak-ggs 3 місяці тому

      If you know the index of the element you want to delete, you can use the ''del'' statement. Or you can use pop() which removes and returns the removed value, And if you know the value to delete and not the index then you can use remove()

    • @CPAbhinav-l6r
      @CPAbhinav-l6r 2 місяці тому

      @Ak-ggs, you are right and remember @rajeshkannan8608, deleting an element that's not at the end is an O(n) operation.

  • @harshilsolanki2560
    @harshilsolanki2560 5 місяців тому

    𝘾𝙖𝙣 you give me data structure roadmap with example which I have to solve

    • @GregHogg
      @GregHogg  4 місяці тому +1

      Check out my full 100 video playlist=

  • @wintur2856
    @wintur2856 2 місяці тому

    Didn't understand a thing 😅

  • @7even77
    @7even77 8 годин тому

    I watched the video, but I can't solve a single leetcode problem on the algomap regarding lists and string, am I done? :(

    • @GregHogg
      @GregHogg  8 годин тому

      It takes practice give it time homie