Buckets and buckets of data!
Tamal Riedman
- O(1) --simple math to access exact memory location, time won't change with size of data
- O(n) --array must be rebuilt to do that
- O(n) --low level language needing to rebuild whole array
- O(n) --whole string must be gone through, duration directly proportional to length of string
- O(n) --same as above
- O(n) --must iterate through each item
- O(n) --might require checking whole array. lucky if it doesn't
- O(n^2) --each item must be sorted through and compared to previous max value
- O(n) --each char in string must be gone through to turn into array
- O(1) or O(n) --depends on specific hash implementation
- O(n) --at the very least, each bucket must be searched