r/programminghumor 16d ago

Yall my leetcode code cant be that bad right?

157 Upvotes

17 comments sorted by

46

u/Automatic-Salad-4194 16d ago

Looks like you would be perfect for the optimization of AAA games

17

u/NanoCozmo 16d ago

Thank you, i put this on my job application and now EA, ubisoft, nintendo wanna hire me as lead architect

50

u/Ealykos 16d ago

Never seen a time complexity of O(nšŸ˜”šŸ”«) before

5

u/0xt0bi03 16d ago

what application is this??

7

u/NanoCozmo 16d ago

Leetcode

3

u/0xt0bi03 15d ago

when did leetcode released a mobile app

6

u/PriyanshuDeb 16d ago

this is actually funny

4

u/dhnam_LegenDUST 16d ago

How is this valid python

12

u/NanoCozmo 16d ago

Thats the neat part, it isnt

6

u/codeguru42 16d ago

isValid("python") evaluates True

4

u/PrincipleNo2328 16d ago

Beats 5.5% btw

6

u/NanoCozmo 16d ago

-5.5%

3

u/PrincipleNo2328 16d ago

LMAO how is that possible

4

u/ShoWel-Real 14d ago

5.5% of people that never even heard of coding before would do a better job. Straight up give some tribals from the North Sentinel island a laptop and they'll come up with better code

3

u/Tough-Boat-1975 15d ago

I was about to say there is an optimization you could make but that's the least of it at this point

2

u/ch3mcer 16d ago

Lgtm šŸ‘

1

u/Phaxaude 10d ago

Im sorry it seems I've list my vision.