4 ms·
This is given as an interview question sometimes, which amazes me because someone spent a lot of effort to invent this within the past 50 years, and now you hav
by chillacy 8y ago
This is given as an interview question sometimes, which amazes me because someone spent a lot of effort to invent this within the past 50 years, and now you have to come up with it on the spot in 45 minutes (or more likely, leet code it ahead of time).
- kevmo314 8y agoWell it's possible that it really only took them 45 minutes to come up with the solution and identifying the problem that needed to be solved is what took longer.