Find the longest increasing sequence whose consecutive difference is 1.
Unlock detailed company stats for this questionUpgrade
Expect follow-ups like
- Find the longest increasing sequence whose difference is at most d. (Coded using a segment tree and coordinate compression.)
Community answers
No answers contributed by the community yet.


