QUEUE Implementation | using Linked List | Python in 10 minutes

Поділитися
Вставка
  • Опубліковано 14 гру 2024
  • Queue is an abstract data structure, somewhat similar to Stacks. Unlike stacks, a queue is open at both its ends. One end is always used to insert data (enqueue) and the other is used to remove data (dequeue). Queue follows First-In-First-Out methodology, i.e., the data item stored first will be accessed first.
    Link to Python Notebook:
    github.com/pro...

КОМЕНТАРІ • 8

  • @prashantkumargupta4312
    @prashantkumargupta4312 2 роки тому +1

    helpful video

  • @abhinavreddy5350
    @abhinavreddy5350 4 роки тому +2

    tq ...............................
    do more videos........

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

    hello Nice video i just have one doubt
    self.last.next = new_node;
    self.last = new_node; # why newNode should be the last itself we have already pointed the new node with last.next then why need of self.last = new_node
    Thanks

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

      self.last.next = new_node;
      that means we add new node then (self.last.next = new_node) this is the location where we have to add

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

    😪 sleepy, anyway thnks

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

    Bro Y ur voice is too low.. 😒