🔧 Leetcode - 125. Valid Palindrome
Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to
Javascript Code
/**
* @param {string} s
* @return {boolean}
*/
var isPalindrome = function (s) {
s = s.replace(/[^a-zA-Z0-9]/g, '').toLowerCase();
let p1 = 0;
let p2 = s.length - 1;
while (p1 < p2) {
if (s[p1] !== s[p2]) {
return false;
}
p1++;
p2--;
}
return true;
};
🔧 Solving the Valid Palindrome Problem in Java
📈 35.91 Punkte
🔧 Programmierung
🔧 Leetcode Day 2: Palindrome Number
📈 33.2 Punkte
🔧 Programmierung
🔧 LeetCode in Swift - 9. Palindrome Number
📈 33.2 Punkte
🔧 Programmierung
🔧 Leetcode - 20. Valid Parentheses
📈 27.56 Punkte
🔧 Programmierung
🔧 Leetcode - 242. Valid Anagram
📈 27.56 Punkte
🔧 Programmierung
🔧 Leetcode 678 :- Valid Parenthesis String
📈 27.56 Punkte
🔧 Programmierung
🔧 Valid Parentheses (Leetcode 20)
📈 27.56 Punkte
🔧 Programmierung
🔧 Leetcode Day 5: Valid Parentheses Explained
📈 27.56 Punkte
🔧 Programmierung
🔧 Leetcode Day 5: Valid Parentheses Explained
📈 27.56 Punkte
🔧 Programmierung
🔧 Valid Parentheses | LeetCode | Java
📈 27.56 Punkte
🔧 Programmierung
🔧 Count of digits and Palindrome
📈 20.78 Punkte
🔧 Programmierung
🔧 How to find a palindrome: my FCC solution
📈 20.78 Punkte
🔧 Programmierung
🔧 Palindrome Partitioning: An In-Depth Guide
📈 20.78 Punkte
🔧 Programmierung
🔧 Leet Code Palindrome problem in Javascript
📈 20.78 Punkte
🔧 Programmierung
🔧 #131. Palindrome Partitioning
📈 20.78 Punkte
🔧 Programmierung
🔧 Palindrome - program
📈 20.78 Punkte
🔧 Programmierung
🔧 131. Palindrome Partitioning
📈 20.78 Punkte
🔧 Programmierung
🔧 Is The List Palindrome?
📈 20.78 Punkte
🔧 Programmierung
🔧 Checking for palindrome with nodejs
📈 20.78 Punkte
🔧 Programmierung
🔧 1400. Construct K Palindrome Strings
📈 20.78 Punkte
🔧 Programmierung
🔧 Palindrome in JavaScript
📈 20.78 Punkte
🔧 Programmierung