richforest0506 / SortSecondBatches

Betamind-Quick Coding Test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick Coding Test

Please write code to change seconds_batches to be sorted_uniq_seconds in simplest way in Javascript

const seconds_batches = [
  [1, 2, 3, 4],
  [1, 2, 3, 4, 5, 6, 7],
  [30, 31, 32, 33],
  [1, 2, 3, 32, 33, 34, 35, 36, 37, 38, 39, 40],
]

const sorted_uniq_seconds = [1, 2, 3, 4, 5, 6, 7, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40]

About

Betamind-Quick Coding Test


Languages

Language:JavaScript 100.0%