SoftwarePlus.ai

About DataStructures+

How to use DataStructures+

DataStructures+ is in development; this help grows with it.

Your language

The book's language is chosen in the Language box at the top right of the window, outlined in orange, on the same line as the menus. It starts at Python. Choose JavaScript if your course uses it (COP3530 does). You can change it at any time, on any page; your code is kept separately for each language, and an item is complete when its exercise passes in either one.

View ▸ Show other languages side by side shows a lesson's code, and an example's code, in both languages at once. Module 1, Choosing your language, explains the choices in the book itself.

An item's tabs

Learn is the lesson. Examples holds worked code for a question like the exercise's (never the same one). Exercise is your turn: write code and check it. Review has the takeaways, key terms and a self-test; Reference the rules on one page; My notes your own notes.

Seeing the structures

The structures your code builds are drawn beside the code: when an example opens (What this example builds, drawn), after every Run (What the program built, drawn), and at every step of Step through. Each variable's name has an arrow to what it holds. A linked list is drawn in a row, a tree in levels, a heap as its list with the tree it stands for, a hash table as a column of buckets, and a graph round a circle. The words under the drawing say the same thing, for a screen reader.

Change the code and the drawing stays, faded and marked Out of date, until Run draws what your code builds now.

Checking your work

Check my answer runs your code and the book's own answer through the same tests, in your language. Each ✗ says what differs; Show the structure draws yours beside the one expected. Some tests are hidden, so that the code has to work on other values too. Check as often as you like.