I assume you already know the algorithm or the logic for quicksort. Here is how the complexity becomes O(N*LogN):
Imagine that M = Log N to the base 2.
On the first pass, there are approximately
I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This tutorial covers some basics of pointer, pointer arithmetic and function pointer.
What is a pointer:
A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…