We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Algorithms
  3. Constructive Algorithms
  4. Lena Sort
  5. Discussions

Lena Sort

Problem
Submissions
Leaderboard
Discussions
Editorial

    You are viewing a single comment's thread. Return to all comments →

  • prateekkol2103
    5 years ago+ 1 comment

    I believe this has many solutions for a singl qeury only.

    Say, for query of len of array = 5 and comparisons is 6.

    The proposed array is [4,2,1,3,5]. It can also be [5,3,2,4,6] -Adding 1 to each row.

    Or it may be [8,4,2,6,10].

    There are many possibilities in here.

    Please specify some constraints.

    8|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature