Paste a linked list or a tree below to visualize it. Paste more than one to draw them all.
Loading...
For a linked list, each Link is a pair of boxes containing its first (left
box) and rest (right box) attributes. A slash in the rest box is an empty
linked list. An item that is itself a linked list points down to a row of its
own.
A tree is drawn with each label above its branches and an arrow from the label to the root of each branch.
This page doesn’t evaluate Python code. It just visualizes linked lists and trees. Values contained within them are shown as written.