Stack Widget

Display stacks (data structure) using the ‘Stack widget’.

We'll cover the following

This is what it looks like:

Press + to interact

What do I need to know?

  • With the “+Push Value” button, you can add an element at the top of your stack.

  • You can add a node below/above the selected node.

    • With the ‘Add Above’ button, you can add a node at the top.

    • With the ‘Add Below’ button, you can add a node at the bottom.

  • You can change the value or color of a node.

    • Click the node and specify the label/text in the text field.

    • Click the node and use the color picker to change the color.

  • You can select the node and click the trash icon to delete it.

See the image below for reference.

Press + to interact