Menu
Coddy logo textTech

Is Palindrome

Lesson 2 of 15 in Coddy's Recursion Challenges - Master The Recursive Thinking course.

A palindrome is a string that reads the same backward or forward.

Examples,

  • "121"
  • "111"
  • "1234321"
  • "bob"
  • "step on no pets"
challenge icon

Challenge

Easy

Write a function isPalindrome that gets a string s and returns true if s is a palindrome, otherwise false.

Try it yourself

#include <stdbool.h>

bool isPalindrome(char* s) {
    // Write code here
}

All lessons in Recursion Challenges - Master The Recursive Thinking