← Flipkart questions
CodingReported in a candidate post, Dec 2024

Largest subsequence with max-min=1

Filed under Flipkart

Find the length of the longest subsequence in an array of integers such that the absolute difference between any two elements in that subsequence is at most 1.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Flipkart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.