okay,so i was searching around the web and trying out for my self and yet i could'nt get the answer
what is the lower bound for counting the number of unique integers in a linked list(a list in particular and not an array)
it seems like the lower bound is O(nLogN) time complexity and O(1) space complexity.
or O(n) times complexity and O(n) space complexity.
is there an O(n) times complexity with O(1) space complexity?? and would your answer change upon switching it from a list to an array?
-- just to be clear,here's an example: {1,4,2,20,2,1,1} the number of unique items is 2 - {4,20}