Candylips's Posts
Nairaland Forum › Candylips's Profile › Candylips's Posts
1 2 3 4 5 6 7 8 ... 110 111 112 113 114 115 116 117 118 (of 587 pages)
street runs na for piss poor guys. |
oh yea |
really. na wa o ! |
^^ how u go understand ![]() |
sylve11:u |
badoomusoo: ![]() |
nobody ![]() |
^^ he is a man na. no be woman u dey find ![]() |
hope_Alive:what do u mean ![]() |
exactly |
Season 2 . that is so last year |
those guys were piss poor yesterday ![]() |
swit D:hey where have u been |
The time taken is related to their relative complexity - How long does it take to add an element to : * a map - constant * a list - constant - How long does it take to find an element from: * list - depends on the algorithm . . binary search or linear search * array - same as list * sorted list - linear if u do a linear search. But binary search is faster * sorted array - as as sorted list * tree - quadratic * hashmap - constant - How long does it take to sort a list of n elements Depends on the sort algorithm you use. Quick or Merge sort are usually the fastest So if you are concerned about speed the best datastructure to use is a Hashmap/Hashtable (although they are not suitable for most uses) because they are the fastest for addition and retreival of elements |
<NO> |
1 2 3 4 5 6 7 8 ... 110 111 112 113 114 115 116 117 118 (of 587 pages)

