Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.37 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.37 KB

Usage Examples

If the documentation isn't clear enough, these programs will give you a better understanding of how to use the features of LeetPy:

1-D Array

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.

2-D Array (Matrix)

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.

Binary Tree

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).

Linked List

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.