Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Check if a string "level" is a palindrome.

Medium

Problem Statement

Check if a string "level" is a palindrome.

Sample Input

level

Sample Output

level is a palindrome

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
#include <stdio.h> #include <string.h> int isPalindrome(char str[]) { // Your code here } int main() { char str[] = "level"; if (isPalindrome(str)) { printf("%s is a palindrome\n", str); } else { printf("%s is not a palindrome\n", str); } return 0; }
Log in or sign up to run or submit your code.Log inSign up
Input
level
Expected Output
level is a palindrome