← All problemsSign in

Palindrome Checker

Problem description. You are given two string s1 and s2 both are separated by space. After concatenating two string in any order tell whether it's palindrome or not. Input First line contains T test cases Each test case contains two strings s1 and s2. Output Print "1" if palindrome else "0". Constraints - 1 ≤ T ≤ 100 - 1 ≤ s1 ≤ 100 - 1 ≤ s2 ≤ 100 Example Input: 3 abc cba abc cb sky bag

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start