First and last element as pivot in QuickSort?

What is the runtime if first index is pivot in Quicksort? and what about the last index? Is it O(N)?

2017-04-11T00:37:33.809Z