← All problemsSign in

Concatenate Numbers

There are $N$ strings given and each will contain digits only from 1,2,3,4 and 5. You are supposed to find the number of strings that contains all the 5 digits after concatenating any two strings. ###Input: - First line contains the numbers of test cases T. - First line of each test case contains an integer N. - Next N lines contain various strings. ###Output: For each testcase, pri

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