If the documentation isn't clear enough, these programs will give you a better understanding of how to use the features of LeetPy
:
Example | Description |
---|---|
Example 1 | Create a randomized 1-D array and visualize it. |
Example 2 | Create a 1-D array where elements are chosen from a list of choices. |
Example | Description |
---|---|
Example 1 | Create a randomized 2-D array and visualize it. |
Example 2 | Create a 2-D array where elements are chosen from a list of choices. |
Example | Description |
---|---|
Example 1 | Create a randomized binary tree and visualize it. |
Example 2 | Generate a file which contains code for creating randomized binary trees with some constraints (which will not depend on the leetpy package). |
Example 3 | Same as example 2, but with inlined generated code (reducing the number of generated lines). |
Example | Description |
---|---|
Example 1 | Create a randomized singly linked list with 20 nodes and visualize it. |
Example 2 | Create a randomized AND CYCLIC singly linked list with 20 UNIQUE nodes and visualize it. |