468 B
468 B
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