text: utility function to print linked list
code: static void printlist ( Node head ) { if ( head == null ) { Console . WriteLine ( " Empty ▁ List " ) ; return ; } while ( head != null ) { Console . Write ( head . data + " ▁ " ) ; if ( head . next != null ) Console . Write ( " - > ▁ " ) ; head = head . next ; } Console . WriteLine ( ) ; }