CPH003A - Editorial

PROBLEM LINKS:

[Contest][1]

Author: [Faisal Rizwan][2]

Tester: [Karan Malhotra][3]

DIFFICULTY:

CAKEWALK

PREREQUISITES:

None

PROBLEM:

Concatenate two strings such that they form palindrome.

EXPLANATION:

Just check whether string 1 + string 2 or string 2 + string 1 is palindome.


[4]


  [1]: https://www.codechef.com/CP132018/problems/CPH003A
  [2]: https://www.codechef.com/users/coder_tintin
  [3]: https://www.codechef.com/users/kmalhotra30
  [4]: https://ideone.com/baQd1I