The Outlier
CodeChefOpen on judge ↗
Given two unsorted lists A and B, having n and n+1 integers respectively. n elements of the second list are part of the first list. Find the single extra element on the second list. For example n = 5 A = [-4, 2, 5, 8, 9] B = [2, 5, 7, 9, 8, -4] The extra element is 7 ###Input The input contains 3 lines with following specifications. * LINE 1 contains size of list A * LINE 2 contains N space se
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