What are some algorithms which we use daily that has O(1), O(n log n) and O(log n) complexities?
If you want examples of Algorithms/Group of Statements with Time complexity as given in the question, here is a small list -
O(1)
timeO(n)
timeIn a nutshell, all Brute Force Algorithms, or Noob ones which require linearity, are based on O(n) time complexity
O(log n)
timeO(n log n)
timeThe factor of 'log n' is introduced by bringing into consideration Divide and Conquer. Some of these algorithms are the best optimized ones and used frequently.
O(n^2)
timeThese ones are supposed to be the less efficient algorithms if their O(nlogn) counterparts are present. The general application may be Brute Force here.
O(n!)
time