# collectiondatalib

> this contains all of the data structures implemented and ready to use

Latest version **1.0.2** (published 2020-05-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install collectiondatalib
pnpm add collectiondatalib
yarn add collectiondatalib
bun add collectiondatalib
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-05-03 |
| First published | 2020-05-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 27.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | RanajitChandra |
| Maintainers | ranajit22ron |
| Keywords | node, npm, collections, datastructures |

## Links

- npm: https://www.npmjs.com/package/collectiondatalib
- Repository: https://github.com/Ron22c/DataStructuresCollectionNode
- Homepage: https://github.com/Ron22c/DataStructuresCollectionNode#readme
- Issues: https://github.com/Ron22c/DataStructuresCollectionNode/issues
- npm.io page: https://npm.io/package/collectiondatalib

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2020-05-03
- 1.0.1 — 2020-05-03
- 1.0.0 — 2020-05-03

## README

Libraries:

  Sort -> 
    [This functions will sort in assending order]

    swap
    bubble_sort
    selectrion_sort
    insertion_sort
    merge_function
    merge_sort
    pivot_helper
    quick_sort
    getDigit
    getSize
    getMaxNumber
    radix_sort

  Search ->
    [Binary search will take a sorted array as input]
    [String search whill take the long string as first arg and short one as second]

    linear_search
    linear_search_recursion
    binary_search
    string_search

  Collection Classes -> 

    SinglyLinkedList
    DoublyLinkedList
    Stack
    Queue
    BinaryMaxHeap
    PriorityQueue
    BinarySearchTree
    Graph
    HashTable


  Examples: 

  const lib = require('collectiondatalib')
  lib.Search.binary_search([1,2,3,4,5], 5)
  > 4

  lib.Sort.bubble_sort([3,5,1,4,2])
  > [ 1, 2, 3, 4, 5 ]

  lib.Sort.merge_sort([3,5,1,4,2])
  > [ 1, 2, 3, 4, 5 ]

  let list = new lib.SinglyLinkedList()

  list.push(12)
  list.push(13)
  list.push(14)
  console.log(list)

  > SinglyLinkedList {
      head: Node { val: 12, next: Node { val: 13, next: [Node] } },
      tail: Node { val: 14, next: null },
      length: 3
    }

---
_Source: https://npm.io/package/collectiondatalib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
