3 ms·
How is that a good answer at all? If I was asking a candidate that question, I'd expect them to make an inverted index
by thorp 13y ago
How is that a good answer at all? If I was asking a candidate that question, I'd expect them to make an inverted index
- alecbenzer 13y agoI imagine that might have been a follow-up. Given that he was specifically asked to write a "search" method (and not something more open-ended), the more direct search through the docs might have been what the interviewer intended (though it might have been a plus if the author had said something about some sort of indexing off the bat).