Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Generic Examples for BST, AVL, LinkedList, Set, Deque #12

Open
5 tasks
jhasuraj01 opened this issue Apr 30, 2022 · 0 comments
Open
5 tasks

Add Generic Examples for BST, AVL, LinkedList, Set, Deque #12

jhasuraj01 opened this issue Apr 30, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@jhasuraj01
Copy link
Member

Add Generic Examples to demonstrate how to use following data structures.

Example (Stack)

import { Stack } from "@anorcle/dsa";

const stack = new Stack<number>();
stack.push(3);
stack.push(1);
stack.push(100);

console.log(stack.top) // 100

// Remove Top Element from stack
stack.pop()

console.log(stack.top) // 1

For more examples see README.md

@jhasuraj01 jhasuraj01 added documentation Improvements or additions to documentation good first issue Good for newcomers labels Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant