Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 525 Bytes

File metadata and controls

24 lines (13 loc) · 525 Bytes

Python-code-repository

Python Project

An Even-Odd Palindrome string is defined to be a string whose characters at even indices form a Palindrome while the characters at odd indices also form a Palindrome separately.

Example

Input: str=”abzzab”

Output:YES

Explanation:

String formed by characters at odd indices: bzb, which is a Palindrome.

String formed by characters at even indices: aza, which is a Palindrome.

Hence, the given string is an Even-Odd Palindrome.

Input: str=”daccad”

Output: NO