I have this array:
int [] myarray = {17, 6, 8};
What is the optimal way to sort this array, in pseudocode?
Thanks!
May this graphic showing a decision tree for sorting three elements helps: