Cosmos: Add algorithms to check if strings are palindromes?

Created on 9 Oct 2017  路  14Comments  路  Source: OpenGenus/cosmos

Can I do this in Python and C++? I will place it in a new folder called palindrome in the string algorithms section. I plan on doing it in two ways, either by checking equality with the reverse of a string, by recursion, or by a loop.

Hacktoberfest add code

Most helpful comment

Just opened a PR for a Ruby implementation (#1126)

All 14 comments

Sure. Go for it 馃憤

1042 Implemented using python the easy way, short and simple.

@AdiChat are you merging my PR or should I close it because @arnavb has also done it with python but his solution contains lots of code in compared to mine. My solution has 6 line of code. let me know regarding this

@AdiChat #1042 also added JavaScript solution. please review and merge it

@amitsin6h I actually have 3 python solutions in one file. One of my solutions is only 3 lines of code. Also, for your js solution, it is in the wrong folder, so update your fork with my 2 solutions and puts yours there.

@arnavb yeah bro thats awesome. 馃憤 . Thanks for the info i wrnt for sleep now I will update it at morning. Thanks again

@AdiChat #1042 merge it

merged 馃憤

Just opened a PR for a Ruby implementation (#1126)

Can i do this in Java?

Sure 馃憤

Just opened a PR for a Rust implementation (#1243)

Can I do it in Java?

Sure @varishtsg Go for it 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arthurlacoste picture arthurlacoste  路  3Comments

skywalker212 picture skywalker212  路  3Comments

sebasrp picture sebasrp  路  3Comments

vaibhavsingh97 picture vaibhavsingh97  路  3Comments

ivanrein picture ivanrein  路  4Comments