Bits and Bytes
Quick place to revise data structures and algorithm fundamentals.
Thursday, January 5, 2017
Big O Cheat Codes
1) Insertion sort executes in O(N*N), but it is twice as fast as bubble sort and faster than selection sort.
2) Time complexity/Big O for binary search is O(LogN)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment