Consider you have a dictionary of unknown size. The size could be 10,
or 1000 or 10^30.
You are given a method- String GetWordAt(int index), which returns the
word at 'index',
or null if the index is invalid (or out of bounds).

How will you write a method that returns a boolean for a particular
word look up?
Boolean isWord(String word), returns true, if the dictionary contains
the word, or false if it doesn't.

Further constraint: Do this in O(log n) time.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to