What is LinkedListNode in Java

前端 未结 5 662
伪装坚强ぢ
伪装坚强ぢ 2021-02-14 18:42

Excuse my ignorance but I am beginning to prepare for my first technical interview and came across this question and answer on the topic linkedlist

Question: Imp

5条回答
  •  花落未央
    2021-02-14 18:56

    Your question is bit confusing. whether you want a logic to remove a node in a singly linkedlist or you want to learn and use java LinkedlistNode.

    if you are in second the following link will help you

    LinkedListNodee

    or if you want the logic

    let P the pointer to the current node
    P->data = P->next->data
    Q=P->next
    P->next=Q->next
    delete(Q)
    

提交回复
热议问题