Skip to content

Instantly share code, notes, and snippets.

@simolex
simolex / interview-task-4.js
Last active April 1, 2023 13:10
Компания-1. Тестовое задание-4
// const n = 13;
// const a = [1, 2, 3, 1, 2, 2, 3, 3, 3, 1, 4, 4, 5];
// const n = 5;
// const a = [1, 1, 1, 1, 1];
// const n = 10;
// const a = [1, 2, 4, 2, 3, 1, 3, 9, 15, 23];
// const n = 5;