counting same elements
CodeChefOpen on judge ↗
You have given two different arrays a1,a2,a3,.......,aN. and x1,x2,x3,.....,xM. of size N and M respectively, We have to check whether the given arrays are EPIC or not, the condition for EPIC arrays is the number of matching/same elements of both the arrays are exactly should be equal to the N/2 . so check whether the arrays are epic or not ### Input - First line w
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.
Sign in to chat with the tutor and save your progress.
Sign in to start