Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 9 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /