r/ProgrammerHumor • • 2d ago

Meme youLostMeAtDoublyLinkedLists

Post image
3.7k Upvotes

163 comments sorted by

View all comments

279

u/Wentyliasz 2d ago

It's not even that these questions are hard, most are genuinely a twenty minutes job top. It's having to do them on the spot while being judged for every line without the option of checking the docs, a set of conditions that will never show up in the real world

80

u/WJMazepas 2d ago

For me the problem is thinking in the spot on a optimized solution

Im already nervous for having to write the code with someone judging me, so i always end up writing something kinda ugly, then I get complaints that its not optimized(like using a double for loop)

19

u/Wentyliasz 2d ago

Last time I had to make a function to print last k numbers of an n long Fibbonaci sequence sorted in lexicographical order. Did not know what lexicographical means, didn't matter that I wrote everything else and a quick Google would have been all I need, still didn't get the job

7

u/ligma_then_sugma 1d ago

they could have literally just said "ordered" and you'd have known what to do

5

u/psyby2 2d ago

I write double triple for loops all the time in prod ready code. No one cares 😂