I have written code that populates an array, prints an array, and sorts the array. However the user can do so in any order.
How would I start a test that would establish whether the array has been sorted or not so that I can sort either sequentially or by binary methods.
Please give me some direction I'm unable to put my hands around this issue.
Thanks in advance.