puzzles/longest-sub-seq
Zoé Cassiopée Gauthier 7e4f02547b Initial commit
2024-04-02 17:01:09 -04:00
..
src Initial commit 2024-04-02 17:01:09 -04:00
Cargo.lock Initial commit 2024-04-02 17:01:09 -04:00
Cargo.toml Initial commit 2024-04-02 17:01:09 -04:00
longest-seq.awk Initial commit 2024-04-02 17:01:09 -04:00
README.md Initial commit 2024-04-02 17:01:09 -04:00

Longest sub-sequence

Puzzle from the rendezvous with cassidoo newsletter of February 21st, 2022.

Given an array of integers, find the length of the longest sub-sequence such that elements in the sub-sequence are consecutive integers, the consecutive numbers can be in any order.

Solution posted at https://gist.github.com/zoeisnowooze/3932eae663f649c66b9e377cc6e05c9b