• + 0 comments
    1. Scan sequence of number from the beginning.
    2. Identify whether the scanned sequence is swappable or reversable or not.
    3. After scanning, find out whether the sequence can be arranged by swap or reverse.
    4. It doesn't need to actually swap or reverse any elements. Maintaining the points is enough.

    https://github.com/jiaqing123/HackerRankApp/blob/master/HackerRankApp/Problems/AlmostSorted.cs