An array of distinct integers, find length of the longest subarray which contains numbers that can be arranged in a continuous sequence.
Tag - java dynamic array
we have discussed a solution that assumes that elements in given array are distinct. Here we discuss a solution that works even if the input array.
Java provides a data structure, the array, which stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection...