by paulsutter · 4y ago · 0 comments
Real world requirements usually contain inaccurate assumptions. He spent days to find a terrible answer, when the obvious solution is much better
Start with what works and then optimize
Sophomoric is exactly the word here, and it’s no surprise that the story is about Microsoft
In the lack of additional constraint, sorting seems massively overkill.
Not sure why you are saying that sorting is simpler than the sum trick.
And the clever approach only works on data that is perfect, and that’s extremely rare in the real world
This is a hypersophomoric question