JavaScript Data Structures: Getting Started

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 208

  • @jiandeng8595
    @jiandeng8595 4 ปีที่แล้ว +27

    thank u, Max, in case others may wonder what's next, here's the list
    Stacks (custom)
    Queues (custom)
    Hash Tables (custom)
    Basic Trees (custom)
    Binary Search Trees (BST, custom)
    AVL Trees (custom)
    Priority Queues (custom)
    Heaps (custom)
    Graphs (custom

  • @bakarandguladze
    @bakarandguladze 3 ปีที่แล้ว +24

    0:00:00 Intro
    0:06:16 Arrays
    0:15:14 Sets
    0:21:00 Arrays vs Sets
    0:22:35 Objects
    0:29:41 Maps
    0:37:18 Objects vs Maps
    0:39:02 WeakSet & WeakMap
    0:41:18 A Custom Data Structure - Linked List
    1:24:00 Why would you want a Linked List
    1:26:46 Time Complexity & Big O Notation
    1:28:42 Linked List Time Complexity and Arrays

  • @hamzalahlou4963
    @hamzalahlou4963 4 ปีที่แล้ว +25

    I just bought your react native course on Udemy and I remembered DS with javascript and I said I need to find a course about that and I get yours here . What a coincidence, you're great .

    • @estebanbrian6832
      @estebanbrian6832 3 ปีที่แล้ว +1

      Sorry to be so off topic but does anyone know of a way to get back into an instagram account??
      I was stupid forgot my login password. I love any tips you can offer me.

  • @Hari42726
    @Hari42726 3 ปีที่แล้ว +3

    Linked list Example is helpful and great. Just two suggestions Max
    1. In the insertAt method, this.tail reference will not be changed if we insert element after the tail.
    2. The delete will thrown error if there is only one element in the list and if we delete that element. Moving the check 'if(!this.head) return' check after the first loop will fix this.

  • @princeonukwili996
    @princeonukwili996 2 ปีที่แล้ว +3

    Thank you Max, i'm really grateful. I've been trying to wrap my head around data structures since i was told about it, but it always seemed so difficult and confusing. But, after watching both your tutorials on Big O notation and data structures, it's all starting to make sense and i'm understanding it much better😁😁😁😁, i even added two extra functions to my LinkedList class (removeHead and removeTail) and it worked fine. Thank you for your support, i'll be sure to get the course on Udemy soon enough😊😊😊😊😊😊

  • @sidheshwartiwari9834
    @sidheshwartiwari9834 4 ปีที่แล้ว +3

    My interest in js was slowly fading because of all the boring stuff I wad doing on a daily basis.
    The way you teach is appreciable , you made me hungry to learn again! Thanks
    Subbed ... Why didn't I find this channel earlier??
    Thanks a lot

  • @akashsingh22
    @akashsingh22 4 ปีที่แล้ว +14

    Thanks max, for this course and its really going to help lot of js dev

  • @elakkiyas7142
    @elakkiyas7142 4 ปีที่แล้ว

    you are my favorite tutor in youtube. your teaching are so good .

  • @despareint
    @despareint 2 ปีที่แล้ว

    One of the best teachers I've ever had

  • @hobbyturystaSEO
    @hobbyturystaSEO 4 ปีที่แล้ว +1

    This is what I was looking for. Map function of rest Api from php cms

  • @ashutoshtelang8621
    @ashutoshtelang8621 4 ปีที่แล้ว

    Thanks so so much maxx, i began my career because of you!!!!!!

  • @richardbianco3193
    @richardbianco3193 2 ปีที่แล้ว

    I found a loop in your video. After 1:27:00 you suggest going through algorithm course first, but in the algorithm course (near the beginning) you suggest doing this course first--- which is what I'm doing right now. ;-) But, I wasn't complaining, it's programmer humor. Thanks, the linked list example was nice.

  • @nadiyasadath5023
    @nadiyasadath5023 4 ปีที่แล้ว +1

    Max your skills admires me to learn all the unknown new framework . You are simply amazing. I have done your Angular course with PWA and now Mongo!!!

  • @matheusmotta123
    @matheusmotta123 4 ปีที่แล้ว +2

    I started learning to program about a month ago and this class was very elucidating. Thank you so much for your giving us part of your knowledge for free!

  • @sci-sim
    @sci-sim 4 ปีที่แล้ว +1

    I love the way you approached it, please keep continuing, Thanks a lot

  • @mj2758
    @mj2758 2 ปีที่แล้ว

    the append() method is a little bit confusing to understand if you're not familiar with reference/primitive types. thank you Max for your precious effort

  • @ujayrosh
    @ujayrosh 3 ปีที่แล้ว

    Thanks for explaining it perfectly. You just eas out the DS

  • @MrPyogi
    @MrPyogi 4 ปีที่แล้ว

    My favorite teacher Mr.Max Thanks

  • @reactive_00
    @reactive_00 4 ปีที่แล้ว +2

    I have just one word for you - GREAT.

  • @HappyHorge
    @HappyHorge 2 ปีที่แล้ว

    A good usecase for sets would be to store usernames in a database since they need to be unique for every user, good video so far 😊

  • @JordanAF808
    @JordanAF808 3 ปีที่แล้ว

    The way you walk through building the linked list code is so helpful, thanks!

  • @seanhochman
    @seanhochman 3 ปีที่แล้ว +2

    Man, you explain things so well. Its amazing. Love the content

  • @st3nsvk
    @st3nsvk 4 ปีที่แล้ว +1

    what datastructure will you choose when you need to store list of objects and you need to get item by id , items by ids and also filter by object properties? arrays or map witf for loop filter? or something custom?

  • @piotrekjazz1287
    @piotrekjazz1287 2 ปีที่แล้ว

    Link-list, as always explanation excluding very important coding along (eg. appending i.e.working at the tail, vague basic unit building block explenation etc.)

  • @samadansari6154
    @samadansari6154 4 ปีที่แล้ว +2

    Awesome ! I just started data structure in javascript & u uploaded this video :)

  • @salamina_
    @salamina_ 2 ปีที่แล้ว

    Thank you Max. This material is awesome. thank you for providing for free.

  • @NeverGiveUp-Move
    @NeverGiveUp-Move 4 ปีที่แล้ว +2

    Great video as always! Thank you!
    I think there will be an error if you will try to use find() method on list with only one element.
    null.value

  • @bartbroekhuizen5617
    @bartbroekhuizen5617 3 ปีที่แล้ว +1

    LinkedList structure could be beneficial for keeping track of history / states. Since you always add thinks to it, if you want to undo / redo, you want to have the first element.

  • @shruti4505
    @shruti4505 4 ปีที่แล้ว

    worst case complexity for inserting at the end of the array will be O(n) when we have to shift the complete array in case the size of the array increases

  • @عبدالقادرعبدالرحمنعبدالله
    @عبدالقادرعبدالرحمنعبدالله 4 ปีที่แล้ว +4

    Max, thank you so much for sharing this great content.
    It is really very useful and helpful.
    Can't really believe it is free.
    Thanks again.

  • @A1996ARP2075
    @A1996ARP2075 4 ปีที่แล้ว

    Great sir.Best channel for web developers

  • @ijasdeen3809
    @ijasdeen3809 4 ปีที่แล้ว +1

    Please upload videos every week, we miss those days you kept on uploading videos continually

  • @rishabhsharma6084
    @rishabhsharma6084 3 ปีที่แล้ว

    clear, concise, to the point.. Thanks!

  • @aahancharak1256
    @aahancharak1256 4 ปีที่แล้ว +4

    Thank you Max. Love your dedication in these troubling times.

  • @ritsk4338
    @ritsk4338 4 ปีที่แล้ว +1

    Awesome explanation. I was afraid to learn about Data structure, but you made easy to understand. Thankyou Max

  • @alexmalikov924
    @alexmalikov924 4 ปีที่แล้ว +2

    Hi, Max, your course is amazing, but why your course not on Udemy?

  • @vamshidharreddy3851
    @vamshidharreddy3851 4 ปีที่แล้ว +3

    max..max..max...how can i thank you.i am very glad to listen this lecture.And i want to know ,is this course available in udemy and event js algorithems

    • @adrian-4767
      @adrian-4767 4 ปีที่แล้ว

      Vamshidhar Reddy
      Max will not publish courses on Udemy anymore but on his own platform

    • @vamshidharreddy3851
      @vamshidharreddy3851 4 ปีที่แล้ว

      @@adrian-4767 but it costs very high price here,so on udemy it easy to buy for lowest prices,will you provide any discounts which costs equal to udemy course price or a bit higher?

    • @adrian-4767
      @adrian-4767 4 ปีที่แล้ว

      @@vamshidharreddy3851 I don't work with Max, I can't provide you any coupons for his Academind.com platform, I'm sorry. I also live in a 3rd world country and it's hard to afford the subscription.

    • @vamshidharreddy3851
      @vamshidharreddy3851 4 ปีที่แล้ว +1

      Academind.com can you please tell me why you are not posting this course on udemy

  • @user-oh6dw8vn8p
    @user-oh6dw8vn8p 4 ปีที่แล้ว

    🔴
    for(i=100;i

  • @TimePassedIsTimeWellSpent
    @TimePassedIsTimeWellSpent 3 ปีที่แล้ว

    Unfortunately, the delete method of the LinkedList skips a delete when the value parameter matches the first item in the LinkedList, but it does get any or all other matches.
    That's being picky - this is a great series. So much so that I worked through this one, which is the only reason why I found the bug, and have been having fun adding extra methods.
    I've got your Udemy courses on Angular and Vue so I've voted with my wallet there. Great stuff Max, thanks!

    • @TimePassedIsTimeWellSpent
      @TimePassedIsTimeWellSpent 3 ปีที่แล้ว

      !!!! Many apologies, Max I've made the above comment before you had finished writing the method in the video - I thought that it was completed for some reason. You go on to address all the special cases where the match is on position one. I should have known better.

    • @TimePassedIsTimeWellSpent
      @TimePassedIsTimeWellSpent 3 ปีที่แล้ว

      I've watched it to the end now and a dead solid tutorial it is. I did find one unlikely edge case where an error gets raised if the list only consists of nodes with duplicate values.
      How or why that would happen I don't have a suggestion but if you 'did' have a LinkedList populated with nodes that all had the same value you would get an error when your delete parameter matched them.
      It would occur after the loop that deals with matching and deleting the first nodes finishes. Then, when you enter the loop that deals with other cases, at that point, because all of the nodes have the same value, they have all been 'deleted' so:
      let currNode = this.head;
      if (currNode.next) {...} raises an error because there is no longer any currNode that can have a currNode.next property. Null reference.
      the fix is just to replace
      if (currNode.next)
      with a null reference check so:
      if (currNode && currNode.next)
      and everything else seems to work just fine.
      Now I know that I really am being super-picky if not downright anal but just in case anyone might copy the class/method and use it, here's noting the case. :)

  • @constantinecodes6388
    @constantinecodes6388 4 ปีที่แล้ว +63

    You absolute legend. Thank you for this! :)

  • @paulpeeters
    @paulpeeters 4 ปีที่แล้ว +1

    The delete function in the LinkedList class has an error because after the first while, if all the values in the LinkedList are equal to the value parameter, the head will be equal to null, and the second while will throw an error because it tests head.next.

  • @saketparasher3762
    @saketparasher3762 4 ปีที่แล้ว +6

    I was waiting for ds algo course using js by max

  • @shakilbabu7948
    @shakilbabu7948 3 ปีที่แล้ว

    Thank you sir, love from Bangladesh

  • @sushilkumar-ef7gh
    @sushilkumar-ef7gh 2 ปีที่แล้ว

    This is what I was missing after going through countless tutorials and docs, Still, I couldn't figure out why I can't solve questions on the coding platform and interview (makes me nervous )😅

  • @bhargavsharathkumarjillepa1479
    @bhargavsharathkumarjillepa1479 2 ปีที่แล้ว

    Thank you Max.
    Can you show the performance gain we got by using LinkedList over traditional array?
    Is there a way to calculate exact timing?

  • @ramyokasha3092
    @ramyokasha3092 3 ปีที่แล้ว

    max really thank you , i love your the way you explain any thing , happy to learn from you bro thanks 😀

  • @premKumar-il1qy
    @premKumar-il1qy 4 ปีที่แล้ว +5

    Thank you for your efforts sir ,I've bought your udemy flutter course it was very helpful, and plz also mention the timestamp in your videos

  • @RoydonBrits
    @RoydonBrits ปีที่แล้ว

    Heyy!!!!! I watched your udemy course a year or 2 back

  • @ursochurrasqueira
    @ursochurrasqueira 4 ปีที่แล้ว

    You made so easy to understand, great video!

  • @muhammadabduhsyahrizal9532
    @muhammadabduhsyahrizal9532 4 ปีที่แล้ว +2

    I find this great channel for lesson javascript 😂😂🔥🔥🙏

  • @yasser.dev7
    @yasser.dev7 4 ปีที่แล้ว +1

    Really really amazing tutorial, thank you so much MAX.

  • @SolomonKahsai
    @SolomonKahsai 2 ปีที่แล้ว

    can you please make a complete tutorial not only about Data Structures and Algorithms but also design principles (perhaps on Academind and/or Udemy), thank you again Max

  • @viperben
    @viperben 4 ปีที่แล้ว

    linkedList prepend method - shouldn't you need to check whether if there is any this.head before you insert it to the newNode.next??

  • @vladimir0428
    @vladimir0428 4 ปีที่แล้ว +2

    Hi Max, do you plan to do new courses related to Laravel (PHP Framework), real project or something like this. I have learned a lot from your related courses. You're one of the best instructors I've ever met on the Internet, especially 'Udemy', Pluralsight, and 'TH-cam Chanel'. I respect you very much! :)

  • @musicvista5345
    @musicvista5345 4 ปีที่แล้ว +8

    Huh, the course i have been looking for

  • @raufukiwala
    @raufukiwala 4 ปีที่แล้ว +1

    Thank you max, you're the best

  • @m__link6499
    @m__link6499 4 ปีที่แล้ว

    Thank you Max, could you please put the link of your algorithm course ?

  • @paulr9990
    @paulr9990 4 ปีที่แล้ว

    I believe that if insertAfter is done on the last node (thus, becoming the new tail), this.tail needs to be updated to point to the newly added node.

  • @s03411
    @s03411 4 ปีที่แล้ว +1

    I have bought lots of your courses on Udemy, no regrets :D

  • @surajbhattacharya9448
    @surajbhattacharya9448 4 ปีที่แล้ว +2

    When it will be available on udemy?

  • @rutvikshah4589
    @rutvikshah4589 4 ปีที่แล้ว

    Happy teacher's day Maximilian, you're my real guru 😎

  • @easterntornado
    @easterntornado 3 ปีที่แล้ว

    Max, nice video. Thank you.
    One suggestion: you may also create a Node class so that simply we can create a new Node object with value having next property set to null (like as new Node(value).

  • @nicolasazoidis9064
    @nicolasazoidis9064 4 ปีที่แล้ว +1

    No matter what's your job title in Dev industry, you should always allocate time to whatever Max has to showcase. Always.

  • @karakib2k17
    @karakib2k17 3 ปีที่แล้ว +1

    I can't find Your DSA course in Udemy? Can you please send me the link?

  • @siddhantjain2402
    @siddhantjain2402 4 ปีที่แล้ว

    Javascript Arrays does have the Unshift() method right? Does this method have O(1) or O(n)? I think the underlying functionality of Unshift() method is as you described: shifting the elements 1 by 1 as is suggested by the name of the method as well. Interested in your comments though.

  • @techwithdanyal4798
    @techwithdanyal4798 4 ปีที่แล้ว

    Oh man you are awesome, I learned a lot form your tutorials. Thanks

  • @aleksandrmalkin1156
    @aleksandrmalkin1156 4 ปีที่แล้ว

    Thanks for the video Max, but I think that you are not right about Sets in JS. They are ordered.
    From MDN: "Set objects are collections of values. You can iterate through the elements of a set in insertion order. A value in the Set may only occur once; it is unique in the Set's collection."

  • @TechBowl
    @TechBowl 4 ปีที่แล้ว +1

    I'm super excited for this tutorial 👍

  • @thomasderidder608
    @thomasderidder608 2 ปีที่แล้ว

    Can linked lists be used as a simple or ‘lite’ form of blockchain if its encrypted and distributed?

  • @emilywong4601
    @emilywong4601 4 ปีที่แล้ว +1

    Why don't use the terms records or data sets?

  • @rajesht9702
    @rajesht9702 4 ปีที่แล้ว +3

    Wow, Thank you Max.

  • @Theritiksaini
    @Theritiksaini 4 ปีที่แล้ว +1

    I've a question is your udemy and academind courses are same please reply

  • @aadhavan-arunkumar
    @aadhavan-arunkumar 3 ปีที่แล้ว

    Hey Max, the prepend didn't work if I do prepend first and append next. Like below,
    var LL = new LinkedList();
    LL.prepend('first');
    LL.append('next');
    LL.append('Last');

  • @victorwestmann
    @victorwestmann 3 ปีที่แล้ว

    I tried to do a very simple JavaScript application (well... it was soo small and so simple that I don't even know if I could call it that, but anyways) to guide a user that wants to go, in a subway station, from station A to station B.
    The app would identify in which subway station a person is and how many stations a person should run to go to a different station.
    Even if the destination subway station is in another line. In a line that may demand the user to switch lines. Do you think this could be solved using binary tree in JavaScript??? Thanks! Love your videos Max! Cheers from Brazil 💚💛

  • @navneetprakash1298
    @navneetprakash1298 4 ปีที่แล้ว

    Hi Max,
    Can you please share a new video with the introduction of micro front ends?
    Thanks.

  • @lazymacs2823
    @lazymacs2823 3 ปีที่แล้ว

    Wow. This is what I need.

  • @lbobrov
    @lbobrov 4 ปีที่แล้ว +5

    Well, this goes with your JS Algorithms course...
    Data Structures & Algorithms go together like a horse and carriage :)

    • @skverskk
      @skverskk 4 ปีที่แล้ว

      Way too many commercial interruptions

  • @justcurious1349
    @justcurious1349 4 ปีที่แล้ว

    This is just awesome. Thanks a lot for this.

  • @sushantkunkekar2155
    @sushantkunkekar2155 4 ปีที่แล้ว +1

    Thanks Max

  • @prasadmoghe1702
    @prasadmoghe1702 3 ปีที่แล้ว

    which editor I should use to write java script. Which one you are using in this session

    • @zoharkiks
      @zoharkiks 3 ปีที่แล้ว

      He is using VSCode

  • @rohitkudalkar92
    @rohitkudalkar92 4 ปีที่แล้ว

    i was really waiting for a such video from you.love and support

  • @someone761
    @someone761 4 ปีที่แล้ว +1

    I wish it could be allowable to give you likes more that million at a time .... much thanks

  • @cendolbang99
    @cendolbang99 2 ปีที่แล้ว

    it's just so weird seeing you outside udemy, anyway thanks for the course Max they really helpful!

  • @PauloSantos-yu1tn
    @PauloSantos-yu1tn 4 ปีที่แล้ว

    Thanks for this lesson. Very good stuff as always

  • @MrAlnassre
    @MrAlnassre 4 ปีที่แล้ว

    you are my teacher 🙏🌷

  • @xavi_6767
    @xavi_6767 4 ปีที่แล้ว

    Just what i was looking for.

  • @klutzy_
    @klutzy_ 3 ปีที่แล้ว

    Great course, Thank you

  • @jhimymichel3045
    @jhimymichel3045 4 ปีที่แล้ว +1

    this is great! thanks for sharing Max!

    • @academind
      @academind  4 ปีที่แล้ว

      Glad you liked it!

  • @inujascha8311
    @inujascha8311 3 ปีที่แล้ว

    @Academind: Could you please make some intermediate video tuts? Like in a video I saw lastly. There was this one formula: (n / 2) * (n +1). And I thought WOW. I never guessed something like that. I know that's not js but math. But you didn't explained the Knappsack- problem till the end, too. So are there some videos for intermediate js devs? In which you look in detail and explaining an algo completly? Or how to structere your apps? I mean the script files not the folder struct. Why to store a function there and not there and what is the most convenient way to call it. That would be cool.

  • @phucwall121
    @phucwall121 2 ปีที่แล้ว

    thk u so much. ps: the way Max pronounce value so cute.

  • @santoshsubedi8522
    @santoshsubedi8522 4 ปีที่แล้ว +1

    Hey Max, do you have any plans on Machine Learning with Javascript?

    • @adrian-4767
      @adrian-4767 4 ปีที่แล้ว +3

      Santosh Subedi that topic is useless when applying to web developer postings/jobs

  • @basil127
    @basil127 4 ปีที่แล้ว

    Excuse me for this dumb question, is this code mean that the head contain every list in nested object form?

  • @kingjoshuamanatad2140
    @kingjoshuamanatad2140 3 ปีที่แล้ว +1

    Could you explain further the this.tail.next sir? :D

  • @MrMiguelapb35
    @MrMiguelapb35 3 ปีที่แล้ว

    Great topic, nice explanations, thanks

  • @nacimhoc
    @nacimhoc 2 ปีที่แล้ว

    Amazing explanation !!!

  • @namratadas5569
    @namratadas5569 4 ปีที่แล้ว

    Grt video....if possible can u make videos on some mini projects using vanilla js?

  • @lenicholstech
    @lenicholstech 4 หลายเดือนก่อน

    This was awesome

  • @gsrcreations108
    @gsrcreations108 4 ปีที่แล้ว

    You are the best... 🎉

  • @raviverma05
    @raviverma05 4 ปีที่แล้ว +3

    Thank you sir for this course, you are a true inspiration for all the learners. Love from India ❤️

    • @Zsjr
      @Zsjr 2 ปีที่แล้ว

      oe bawe kitni kri tune javascript?? mrko b kra jldi

  • @bdineshbsdj7707
    @bdineshbsdj7707 4 ปีที่แล้ว +1

    Thank you Sir