Problem statement clarification:
Now I get it, I was misinterpreting question all thi...
using namespace std;
cin >> n;
These are three awesome short videos (3 - 4 minutes each), that explain the quick-sort algorithm really well.