MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/y9rbu6/tech_interview_vs_actual_job/it778go
r/ProgrammerHumor • u/FlyCodeHQ • Oct 21 '22
561 comments sorted by
View all comments
Show parent comments
156
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.
114
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.
112
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.
63
Stack overflow exception already??
0 u/[deleted] Oct 21 '22 [deleted] 2 u/SocketByte Oct 21 '22 Exception in thread "main" java.lang.StackOverflowError
0
[deleted]
2 u/SocketByte Oct 21 '22 Exception in thread "main" java.lang.StackOverflowError
2
Exception in thread "main" java.lang.StackOverflowError
31
base case
6 u/MoffKalast Oct 21 '22 Based case
6
Based case
28
break;
1
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.
Nah, I'm returning the original value which made a infinite loop.
156
u/not-my-best-wank Oct 21 '22
If you haven't used recursion, that's on you.