I did not read the final solution but this was a little stimulating quiz, so this is my Ruby solution: https://gist.github.com/antirez/7231559
I failed a Twitter interview
51–60 of 86 posts
Re: I failed a Twitter interview
#52I did not read the final solution but this was a little stimulating quiz, so this is my Ruby solution: https://gist.github.com/antirez/7231559
ehm, no it is not so simple :-) I'll try better after lunch!
For those of you who didn't notice, antirez[1] makes a data storage system called "Redis"[2]
[1]: https://twitter.com/antirez
[2]: http://redis.io/
Re: I failed a Twitter interview
#53Re: I failed a Twitter interview
#54I actually think this is a good interview question, as playing devils' advocate and coming up with testcases that will break your initial code is a key programming skill, rather than assuming it is done and moving along.
Re: I failed a Twitter interview
#55Google cache: http://webcache.googleusercontent.com/search?client=ubuntu&c... It's off-line for me and asking something about installing a server.
We currently host development environments so seeing this on the front page was a bit crazy. We just couldn't handle the load.
Sorry about that - working on making it better.
Re: I failed a Twitter interview
#56Re: I failed a Twitter interview
#57The recruiter asked me what was the maximum number of edges on a graph without cycles.
When I was on my way home (in a bus) I had this "a-ha" moment.
Well, they lost a great computer scientist in their team! :P
Re: I failed a Twitter interview
#58No offence to Twitter, but this is a seriously bad way of hiring developers. What are you trying to recruit mathematics scholars as developers? When will companies like Twitter learn not all great developers are math geniuses? I didn't even get a college education to get where I am, I failed maths in school as well, but I can code, so what does that mean? I think it means nothing in the greater scheme of things. By t…
It's all about how you look at problems.
If you can analyse problems, break them down and create simple, novel solutions without much effort—that's not with an overnight sleep, as sometimes you'll need to craft solutions immediately—you're a good candidate.
That's exactly the sort of thing these questions test.
Re: I failed a Twitter interview
#59How will this solution work for cases like [1,2,1], when there will be no water held?
Re: I failed a Twitter interview
#60No offence to Twitter, but this is a seriously bad way of hiring developers. What are you trying to recruit mathematics scholars as developers? When will companies like Twitter learn not all great developers are math geniuses? I didn't even get a college education to get where I am, I failed maths in school as well, but I can code, so what does that mean? I think it means nothing in the greater scheme of things. By t…
"this is a seriously bad way of hiring developers" We can't reasonably assume that Twitter uses this sort of question in all their developer interviews. We don't have enough data for that. Perhaps this guy was going for a role where solving problems quickly and under pressure was a key requirement. If that were the case, this is pretty much a perfect interview question.