java - Modifying first pivot to median pivot for quicksort trouble -


i'm stuck on should trivial. i'm trying modify code uses first index pivot in quicksort, code uses median. professor said easiest way go doing send median value first index, , send first index value median index. i'm trying @ top of code whenever run average array, out of bounds exception.

my code.

sorry, i'm working on ipad in vi taking picture easier me.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -