Longest Consecutive Integer Sub-sequence from String
Filed under LinkedIn
The question
Given a string of comma-separated integers, find the longest sub-sequence of consecutive integers (in any order) and print them in increasing order.
No write-up yet. Related questions below have one.
Related LinkedIn questions
Collected from public candidate posts and coding forums. Updated Nov 2026.