Skip to content

Latest commit

 

History

History
133 lines (73 loc) · 3.09 KB

readme.md

File metadata and controls

133 lines (73 loc) · 3.09 KB

Quick DS

Java Version

Installation: Include the library in your project dependency

  • After Downloading the JAR File,
    • Open your Project Module Settings.
    • Go to Dependencies and include the JAR

image


DOCUMENTATION

  • Import the class Quickds from the added jar file. From this class users can access all the functions this library has to offer. See Examples

image

Examples:


1.Arrays:

  • Default Size: 10.
    • Generates Random 1d and 2d Array inputs

      int[] array = quickds.createRandom1dArray();

      int[][] array = quickds.createRandom2dArray();

    • Generate Custom 1d and 2d Array inputs

      int[] array = quickds.createCustom1dArray(size: 25);

      int[][] array = quickds.createCustom2dArray(rowLength: 5, colLength: 5);


2.Linked Lists

  • Default Size: 10
  • Note: Import Node class from the JAR file.
    • Generates Random Linked List inputs

      Node head = quickds.createRandomLinkedList();

    • Generate Custom Linked List inputs

      Node head = quickds.createCustomLinkedList(Length: 12);


3.Binary Search Tree

  • Default No:of nodes: 23.
  • Note: Import TreeNode class from the JAR file.
    • Generates Random BST inputs

      TreeNode root = quickds.createRandomBST();

    • Generate Custom BST inputs

      TreeNode root = quickds.createCustomBST(Number Of Nodes: 15);


2.Input Formatting Functions:

1. Arrays:

  1. String to Array
    image

  1. String to 2d int Array image

  1. String to 2d char Array image

2. LinkedList:

  1. Array to Linked List
    Array to LL

  1. String to Linked List
    String to LL

3.Binary Search Tree

  1. Level order traversal to BST
    image

  1. Create random BST
    image

  1. Create custom BST with no:of nodes specified
    image

  1. Create BST from sorted array
    image