Single Linked List

Data Structures And Algorithms Note

Allie Hsu
Coder Life
3 min readJan 16, 2022

--

Basic Initialize

Function for push new node and delete node

how it works

how I would do

for example

think about the edge cases

  • x and y may or may not be adjacent
  • Either x or y may be a head node.
  • Either x or y may be the last node.
  • x and/or y may not be present in the linked list.

how it works

--

--

Allie Hsu
Coder Life

A tech enthusiast who is keen to develop new skills