r/programming • • May 09 '15

"Real programmers can do these problems easily"; author posts invalid solution to #4

https://blog.svpino.com/2015/05/08/solution-to-problem-4
3.1k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

0

u/hk__ May 09 '15

Don’t worry, 4th and 5th are much harder than the first three.

1

u/MikeSz May 09 '15

the fifth one takes some noodling time to figure out how to organize the problem so that you can solve it with a program. It helps to know the capabilities of the language you use. My solution to 5 leveraged python's easy to use string expressions and a list comprehension.
Figuring out how to solve the problem is the fun part, something that might be hard to do under the hard gaze of an interviewer in a high-pressure situation. And yes, python is easier to use that java, so that helps.