Swacblooms

Making the Moves
Menu
  • Home
  • Motivation
  • Education
  • Programming
  • About
  • Contact
  • Privacy Policy
Home
Uncategorized
Sorted Union
Uncategorized

Sorted Union

Sammy April 11, 2019

Write a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays.

In other words, all values present from all arrays should be included in their original order, but with no duplicates in the final array.

The unique numbers should be sorted by their original order, but the final array should not be sorted in numerical order.

Your code should satisfy the following conditions:8

  • uniteUnique([1, 3, 2], [1, [5]], [2, [4]])should return [1, 3, 2, [5], [4]]
  • uniteUnique([1, 2, 3], [5, 2, 1])should return [1, 2, 3, 5]
  • uniteUnique([1, 2, 3], [5, 2, 1, 4], [2, 1], [6, 7, 8])should return [1, 2, 3, 5, 4, 6, 7, 8]

Establish your code using this function

Send a link to your code in the comment section below. You can use any editor of your choice

Prev Article
Next Article

Related Articles

Making Multiple Projects Share Same Node Modules Directory
Hi guys, what’s up…. In today’s post, we would be …

Making Multiple Projects Share Same Node Modules Directory

Translate the provided string to pig latin. Pig Latin takes the …

The Pig Latin Challenge

About The Author

Sammy

I am Samson Amaugo. I am a full-stack web developer and I specialize in MERN stack development

One Response

  1. Sammy

    This is mine https://code.sololearn.com/WDW61xzXNwxv

    April 11, 2019

Leave a Reply

Cancel reply

Search Site

Recent Posts

  • Sshing into your computer from anywhere in the world
  • Case Statement: Ruby
  • Voucher Based Ethereum System
  • Making a CRUD API using Azure Functions
  • Making a Wikipedia chatbot with WIT.AI

Categories

  • EDUCATION
  • Motivation
  • Programming
  • Uncategorized

Get more stuff

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

we respect your privacy and take protecting it seriously

RSS Swacblooms

  • Sshing into your computer from anywhere in the world
  • Case Statement: Ruby
  • Voucher Based Ethereum System
  • Making a CRUD API using Azure Functions
  • Making a Wikipedia chatbot with WIT.AI
  • Making a small Library in Solidity
  • Fauna+Azure Functions
  • MLH Fellowship (Major League Hacking)
  • GraphQL Basic Overview
  • VSCODE Creating Root Level Files or Folders In VsCode

Swacblooms

Making the Moves
Copyright © 2021 Swacblooms
Swacblooms - Making the Moves