DSA Single linked list

single linked list every item knows about other item head is reference variable which points to next node , and tail is last one

last element is connected to null

alt text

Code