Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
craver239yI tried it in java, and it works. What's so hilarious in this, it seems a genuine question.
-
host40669yI appreciate these moments because I can recognize them now. there was a time when I was Joe Z. Poor bastard.
-
meh there is an easy way make a dictionary spam all the words in and use built in functions to do the rest in python
-
Python55359y@batuhanfaik You don't need a dictionary for it, you just have to split the string into words and check which are the same if you reverse them. Then return the longest of them :-)
-
@Python yeah you could do that but why return one variable instead of one i could return the amount of letters and the word in one line with dicts rather than return one by one with list (i know you can collapse it in to one line but simplicity might be the key for him)
-
I've only posted a couple times on SO with genuine questions - and both times I immediately received responses of hate and condescending feedback.
-
@developerTom I post quite a bit there, and yeah, it's full of asshats ready to pounce on anyone for missing the most minute of details. Also: rise to vote sir
-
iguana8108yyou guys realize that's not Stack Overflow, right? That's another Stack Exchange site called "Programming Puzzles and Code Golf".
Evil developers on Stackoverflow
undefined