Home
Public Speaking
Travel
Longest Sequence in an Array
Problem:
In an integer array, find the longest sequence which has maximum 2 different values.
Java Code: