Ning Inc Interview Question
13 Interview Reviews |
Back to all Ning Inc Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Manager at Ning Inc:
If all the keyes mapped to a single value in the hash table, what is the order of complexity to seach for the value
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (2)
O(1) if either the client or table knows.
- If the client knows then it could get the first value from the value iterator.
- If the table knows, as in a utility #asMap(Set<K> keys, V value), then it can check the value reference. This is a custom utility, but falls in the same train of thought as Collections#singletonMap(key, value) style.
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up
0 of 0 people found this helpful
by Interview Candidate: