jsacademyio / Data-Structures-And-Algorithms-Workshop

This is the repository for the Data Structures & Algorithms workshop
MIT License
2 stars 11 forks source link

solution to the palindrome exercise #15

Closed kengneruphine closed 4 years ago

kengneruphine commented 4 years ago

The solution to Issue #12

acha-bill commented 4 years ago

First of all, your solution works! 👍

Can you think of a way to improve it? In terms of time or space complexity? You used 3 expensive operations, split, reverse, join. We can solve this problem without these.

kengneruphine commented 4 years ago

I will think of another way to implement it and update this PR with the solution

kengneruphine commented 4 years ago

Updated solution