id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

mergeSortInts


Given an unsorted array of integers, implement a merge sort algorithm to return the original array with its elements arranged in ascending order.


mergeSortInts([9, 7, 5, 3, 1]) → [1, 3, 5, 7, 9]
mergeSortInts([1, 2, 3, 4, 5]) → [1, 2, 3, 4, 5]
mergeSortInts([11, 4, 67, 12, 14]) → [4, 11, 12, 14, 67]

...Save, Compile, Run (ctrl-enter)

public int[] mergeSortInts(int[] unsorted) }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 250

Copyright Nick Parlante 2017 - privacy