A Google Interviewing Story
paultyma.blogspot.com
A Google Interviewing Story
1–10 of 122 posts
Re: A Google Interviewing Story
#2Re: A Google Interviewing Story
#3Re: A Google Interviewing Story
#4Angry because neither the hash table or the prime multiplication would be as fast as a boolean array indexed by the char value. As an added bonus, the boolean array actually makes the most intuitive sense.
Re: A Google Interviewing Story
#5Angry because neither the hash table or the prime multiplication would be as fast as a boolean array indexed by the char value. As an added bonus, the boolean array actually makes the most intuitive sense.
Re: A Google Interviewing Story
#6Re: A Google Interviewing Story
#7Re: A Google Interviewing Story
#8The prime multiplication is a pretty bad solution. It's actually O(n log n) rather than O(n), since you have to use some form of big integer, and multiplying a size-n number by a constant is O(log n). It is also needlessly complicated.
Re: A Google Interviewing Story
#9The prime multiplication is a pretty bad solution. It's actually O(n log n) rather than O(n), since you have to use some form of big integer, and multiplying a size-n number by a constant is O(log n). It is also needlessly complicated.
Re: A Google Interviewing Story
#10Angry because neither the hash table or the prime multiplication would be as fast as a boolean array indexed by the char value. As an added bonus, the boolean array actually makes the most intuitive sense.