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

1

u/thardoc May 09 '15

this stuff is scary to me as a guy who just completed freshman year of CS. "Real programmers can do these easily". I can do the first three pretty easily, I could probably figure out the fourth - but the fifth I'm not sure how to approach besides brute force, and even then its tricky to me . I doubt I could solve all 5 in under an hour...

2

u/[deleted] May 09 '15

First 3 seemed reasonable filter for those who can't code.

The last 2 seemed quite complex and time consuming in some languages I would probably like to use like C...

1

u/[deleted] May 09 '15

The 3rd one would not be easy to do in C at all.

1

u/[deleted] May 09 '15

Oh, yeah I forgot the 128 bit implementation... Possible, but needs extra work. With iterative solution and your own adding functions it wouldn't be that bad as you only have to implement addition...

1

u/[deleted] May 09 '15

don't be scared.

i've been in the industry since 1990.

the author, and anyone else who says a "real programmer" must be able to do "x, y and z", is a fucking moron

if anyone asks you something like this in an interview then take it as an indication that you don't want to work with the asshat or his asshat company

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.

0

u/robertDouglass May 09 '15

That's why CS programs aren't 1 year long?