C++ Tutorial - LINKED LISTS

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

КОМЕНТАРІ •

  • @user-ge2vc3rl1n
    @user-ge2vc3rl1n 3 роки тому +259

    the code is wrong?
    it should be:
    nodePtr head;
    head = new Node;
    head ->data = 20;
    head ->link = NULL;
    same cout statement
    also typedef in lowercase

    • @hiankun
      @hiankun 2 роки тому +21

      The errors are significant and do harms more than necessary.

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

      Great. This works

    • @abdulrahmanmasood8277
      @abdulrahmanmasood8277 2 роки тому +23

      Thank you, it's pretty weird that a channel for a large company such as LinkedIn would publish a video like this without validating it first

    • @Kafi_relatable
      @Kafi_relatable Рік тому +1

      is this code for creating a linked list or only on insertion?

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

      exactly what I was thinking

  • @Crax30
    @Crax30 2 роки тому +25

    The Code is wrong in this video.

  • @andrewnicastro8400
    @andrewnicastro8400 2 роки тому +88

    You're going to confuse a lot of people with this.

    • @a_green_cat
      @a_green_cat Рік тому +18

      Can confirm, i am confused

    • @yousefal-bakri3455
      @yousefal-bakri3455 Рік тому

      @@a_green_cat its been a week for me studying link list , and still i dont understand it ...

    • @Tacosuprisedelux
      @Tacosuprisedelux 8 місяців тому +3

      Can confirm I am lost in the sauce

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

      This is why youtube is stupid for removing the dislike button

  • @nahomgetenet5642
    @nahomgetenet5642 3 роки тому +23

    headnode was not declared in the scope????

    • @nickbirrer
      @nickbirrer 3 роки тому +5

      If you are still on it, in 1:25 instead of head = headNode write head = new Node

  • @jadenataylor
    @jadenataylor 2 роки тому +6

    the code at 3:20 and the code at 5:34 don't match up. The code at 5:34 is good though.

  • @KeBerds
    @KeBerds 3 роки тому +11

    Typedef undefined?

  • @fatgoose7830
    @fatgoose7830 2 роки тому +50

    Seriously? "Typedef" and undeclared headNode? Come on

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

    Creating software destroyers with this video

  • @pnuema1.618
    @pnuema1.618 2 роки тому +10

    Undefined reference to headNode.
    Edit: guess I'm late to the party!

    • @FunkadelicFeed
      @FunkadelicFeed Рік тому +1

      Yeah they messed up. It's supposed to be
      head=new node();
      head->data=20;
      head->link=NULL;

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

    could we get the code snippet in the description?

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

    using C syntax ?

  • @yamire850
    @yamire850 3 роки тому +5

    Random but you've got a soothing voice :D

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

    Insert was not declared in this scope . What ?

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

      Post your code here.

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

      @@servantofourlordjesuschris6456 Ya insert is unidentified... insert (head, 30);
      nodePtr tmp;
      tmp = head;

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

      you called a function that has never been declared and also not defined

  • @용재이-b4s
    @용재이-b4s 4 роки тому +3

    최근 수 년 간 세상의 변화가 제 생각과 일치했고 앞으로도 그럴 수 있기에 역량 있고 능력 있으신 분들과 교류를 갖고 미래를 준비하자는 것입니다. 최상의 최고의 미래를....전 교육을 못받아서 컴퓨터 IT 용어나 기술은 사용할 줄 모르지만 방향이나 전체적 통찰은 할 수있어요.

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

      You are in wrong section of youtube

  • @rouhanasalameh1149
    @rouhanasalameh1149 3 роки тому +9

    this was clear and simple. the coding and explanation were very understandable. however, the inserting process was backward (adding data before a node) but can be modified to add it after the node (or between the node and null).
    Moreover, it was very helpful. thank you.
    teach coding better than my doctor.

  • @DON-su5ss
    @DON-su5ss 2 роки тому +6

    That's total nonsense

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

    Source code

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

    nodePtr = temp; is unnecessary. You can just use the same head declaration and it does the same thing

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

    Its wrong
    Whats the point of uploading wrong code

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

    thank you very much

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

    thanks for the explanation.

  • @apollopierce6556
    @apollopierce6556 9 місяців тому

    this was so confusing until I realized the code is wrong!

  • @rogerplays2707
    @rogerplays2707 Рік тому +2

    not indian

  • @reflex9238
    @reflex9238 11 місяців тому

    Pretty amateurish mistake head = headnode, when you never defined headnode meaning its going to get you an error right off the bat. For those of us that don't know jack, what are you even trying to do here and what is the point of this, how would you even define headnode as there's no way to tell if its an integer or string.

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

    Unfortunately there are many mistakes in this video with lettering...

  • @dlaminimajahonkebanele8034
    @dlaminimajahonkebanele8034 10 місяців тому

    next time code the code from scretch, not provide a written code. its hard to trace a code that you can not write

  • @اكرمبورحلة-ش9ج
    @اكرمبورحلة-ش9ج 7 місяців тому

    Trach

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

    I thought I was too dumb to understand it. After reading the comments, I realise the code is wrong. No wonder it doesn't make any sense.
    Come on, LinkedIn. You could've been better.

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

    I couldn't understand a thing. I'm cooked.

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

    this really doesn't explain very much ...

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

    ngl you lost me when you said a linked list

  • @sean8190
    @sean8190 7 місяців тому

    garbage.