Hi everyone! I learned bolts and nuts algorithm in the class, so let me share my code.
The problem is basically this
You are given a collection of nuts of different size and corresponding bolts. You can choose any nut & any bolt together, from which you can determine whether the nut is larger than bolt, smaller than bolt or matches the bolt exactly. However there is no way to compare two nuts together or two bolts together. Suggest an algorithm to match each bolt to its matching nut.
I’m gonna put the quicksort code here, and entire code on Github gist.