Linked List in Java - 67: Delete last occurrence of an element in Linked List

Поділитися
Вставка
  • Опубліковано 5 жов 2024
  • Source Code: thecodingsimpl...
    To delete a node in linked list when only this node is given, we'll copy the next node value to given node & will delete next node.
    We can some of the cases like:
    When there is no node
    When given node is last node
    Positive cases
    Please check video for more info:
    CHECK OUT CODING SIMPLIFIED
    / codingsimplified
    ★☆★ VIEW THE BLOG POST: ★☆★
    thecodingsimpli...
    I started my UA-cam channel, Coding Simplified, during Dec of 2015.
    Since then, I've published over 200+ videos.
    ★☆★ SUBSCRIBE TO ME ON UA-cam: ★☆★
    www.youtube.co...
    ★☆★ Send us mail at: ★☆★
    Email: thecodingsimplified@gmail.com
    This problem is similar to following:
    To Delete last occurrence of an element:
    Start checking element from head node
    Whenever you find the given element, store the node reference
    At last you've last occurrence node reference of element
    Now copy the next element value to current value
    Delete the next node
    We can some of the cases like:
    When there is no node
    When given node is last node
    Positive cases
    Please check video for more info:
    linked list in java,
    Delete last occurrence of an element,
    linked list Delete last occurrence of an element,
    delete,
    last occurrence,
    element,
    linked list,
    java tutorial,
    coding simplified,
    java

КОМЕНТАРІ • 4

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

    think you man your are one best programmer in the world

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

    bhai....you explain really well ....thanks a ton