Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

128
Views
Merge Sort solution with a for loop that is not O(n2) - JavaScript

The solution that I came up with for merge sort uses while loops, because I know it will avoid the time complexity of O(n2). I've also seen that a lot of the solutions that have the best time complexity uses the while loop.

I wanted to know if there's a solution where you can avoid the O(n2) time complexity using the for loop instead of the while loop.

Thanks!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!