Skip to content

Latest commit

 

History

History
executable file
·
23 lines (10 loc) · 446 Bytes

Palindrome_Check.md

File metadata and controls

executable file
·
23 lines (10 loc) · 446 Bytes

Palindrome Check

Problem Statement

Write a function that takes in a non-empty string and that returns a boolean representing whether or not the string is a palindrome. A palindrome is dened as a string that is written the same forward and backward.

Sample input:"abcdcba"

Sample output: True (it is a palindrome)

Explanation

We can use a Stack here

Solution

Check this Python code.