What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-09-15 20:07:02
reads the string in then determines if the string is a palindrome.
#include <iostream> using namespace std; // Iterative function to check if given string is a palindrome or not bool isPalindrome(string str) { int low = 0; int high = str.length() - 1; &n... Add solution -
Other 2021-09-10 02:56:03
palindrom code for paython 5 charctart
string=input(("Enter a string:")) if(string==string[::-1]): print("The string is a palindrome") else: print("Not a palindrome") Add solution -
Python 2021-09-05 21:02:03
longest palindromic substring python
class Solution(object): def longestPalindrome(self, s): dp = [[False for i in range(len(s))] for i in range(len(s))] for i in range(len(s)): dp[i][i] = True &n... Add solution
Best helpers
Ranking is empty