Skip to content

Instantly share code, notes, and snippets.

@jitsceait
Created November 26, 2015 04:00
Show Gist options
  • Save jitsceait/f1597f82475ec5bc21b1 to your computer and use it in GitHub Desktop.
Save jitsceait/f1597f82475ec5bc21b1 to your computer and use it in GitHub Desktop.
Linked list passed :7->6->5->4->3->Null ===========|
Linked list passed :6->5->4->3->Null =========| |
Linked list passed :5->4->3->Null =======| | |
Linked list passed :4->3->Null ======| | | |
Linked list passed :3->Null ====| | | | |
Linked list passed :Null ===| | | | | |
Length returned : 0 <===| | | | | |
Length returned : 1 <======= | | | | |
Length returned : 2 <=============| | | |
Length returned : 3 <=================| | |
Length returned : 4 <======================| |
Lenght of linked list : 5 <======================= |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment