What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-20 15:26:14
Write a C program to check whether the string is a palindrome without using string functions.
#include <stdio.h>#include <string.h> int main(){ char text[100]; int begin, middle, end, length = 0; gets(text); while ( text[length] != '\0' ) length++; end = length - 1; middle = length/2; for( begin = 0 ; begin < ... Add solution -
Java 2021-10-01 20:34:07
Java program to check palindrome string using recursion
import java.util.Scanner; public class RecursivePalindromeJava { // to check if string is palindrome using recursion public static boolean checkPalindrome(String str) { if(str.length() == 0 || str.length() == 1) return true; ... Add solution -
Java 2021-09-30 14:00:02
Java program to check palindrome number using recursion
import java.util.Scanner; public class RecursivePalindromeJava { // to check if string is palindrome using recursion public static boolean checkPalindrome(String str) { if(str.length() == 0 || str.length() == 1) return true; ... Add solution -
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
Best helpers
J-Dizzle
+5
Anirudhan J
+5
Supes9
+5
Marcoose
+5
Vikki Hills
+5
BuckNaked69
+5
Magguu
+5
EHH
+5
Srishti L
+5
L E Morin
+5
Ciara
+5
Chris Paton
+5
Rrrrhh
+5
Jaehyeon Yu
+5
Enceladus
+5
Dan Romik
+5
HDdeveloper
+5