array
-
Another Look at Finding Minimum and Maximum in Arrays
I recently saw an exercise for finding a minimum and maximum value in an array. The wording of the question, which I won’t repeat here, hinted you to do that with a bit story behind it. Then, I reminisced about the good old days and attacking the problem with a simple for loop. You know,…
-
Sorting An Array of Objects
This post has been on my mind for a while. Today, I would like to talk about sorting an array of objects. This exercise assumes your array is uniform, meaning all elements in the array are of the same type. To keep thingsĀ more simple, I’ll assume you know what you are doing and we won’t…