Skip to content

Commit d72c70f

Browse files
Add problem description for palindrome
1 parent 6422cb8 commit d72c70f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

02_palindrome/index.js

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// --- Directions
2+
// Given a string, return true if the string is a palindrome
3+
// or false if it is not. Palindromes are strings that
4+
// form the same word if it is reversed. *Do* include spaces
5+
// and punctuation in determining if the string is a palindrome.
6+
// --- Examples:
7+
// palindrome("abba") === true
8+
// palindrome("abcdefg") === false
9+
110

211
// Solution 1
312
// Reverse the string and store the result in an variable than compare string to the reversed value

0 commit comments

Comments
 (0)