Skip to content

aimon-tnp/3-Array-Merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3-Array Merge

Minimal TypeScript project implementing a 3-way merge function.

Function: merge(collection_1, collection_2, collection_3): number[]

  • collection_1 and collection_2: sorted ascending (min -> max)
  • collection_3: sorted descending (max -> min)
  • returns a single array sorted ascending, without using any sort function.

Setup

  1. Cloning files and changing into project's directory

  2. Install dependencies

npm install
  1. Run tests
npm test

Files

  • src/merge.ts - implementation
  • test/merge.spec.ts - Vitest unit tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published