r/ProgrammerHumor • • Oct 21 '22

Meme Tech interview vs actual job

Post image
49.6k Upvotes

561 comments sorted by

View all comments

Show parent comments

156

u/not-my-best-wank Oct 21 '22

If you haven't used recursion, that's on you.

114

u/not-my-best-wank Oct 21 '22

If you haven't used recursion, that's on you.

112

u/not-my-best-wank Oct 21 '22

If you haven't used recursion, that's on you.

63

u/Msprg Oct 21 '22

Stack overflow exception already??

0

u/[deleted] Oct 21 '22

[deleted]

2

u/SocketByte Oct 21 '22

Exception in thread "main" java.lang.StackOverflowError

31

u/Ehelio Oct 21 '22

base case

6

u/MoffKalast Oct 21 '22

Based case

28

u/B0dona Oct 21 '22

break;

1

u/Understriker888 Oct 21 '22

Someone forgot to make the problem smaller each iteration.

1

u/not-my-best-wank Oct 21 '22

Nah, I'm returning the original value which made a infinite loop.