Longest Consecutive Run of Values
Medium
Hash Set Techniques
Print the length of the longest set of values that form consecutive integers (order in the array does not matter).
Constraints
0 <= n <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.