Check for Palindromes needs more resource links
See original GitHub issueChallenge Check for Palindromes has an issue.
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/58.0.3029.110 Chrome/58.0.3029.110 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function palindrome(str) {
var normalizedStr = str.replace(/[\W_]/g, '').toLowerCase();
var reverseStr = normalizedStr.split('').reverse().join('');
return normalizedStr === reverseStr;
}
palindrome("eye");
In info are only the docs to .replace() and .toLowerCase(). You could add the Docs to .split(), .reverse() and .join() again. I didn’t know that I am allowed to use them. It would be helpful for some other users.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Function to check if a singly linked list is palindrome
Check if a Singly Linked List is Palindrome using Stack: · A simple solution is to use a stack of list nodes. This...
Read more >Using recursion to determine whether a word is a palindrome
What if the string contains two or more letters? Here's where we'll have our recursive case. Consider the palindrome rotor. Its first and...
Read more >Check for Palindrome | Data Structures & Algorithms - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >How to Check Palindrome Program? - Java - Great Learning
If it is more than one letter, then each character of the substring is checked. If the words are found equal, then the...
Read more >A method to find palindromes in nucleic acid sequences - PMC
The first choice given by number 1 indicates that the user requires a palindromic sequence greater than or equal to a certain length....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this would also be a good first-timer issue
@raisedadead So if it’s true, then I will wait and appreciate. Case closed at this time.