Question: Single File Programming Question Given an unsorted array Arr of size N of positive integers. One number ' A ' from set { 1 ,

Single File Programming Question
Given an unsorted array Arr of size N of positive integers. One number 'A' from set {1,2,dots,N} is missing and one number 'B' occurs twice in array. Find these two numbers.
Input format :
The first line of input consists of N integers.
The Second line of input consists N number of Space separated integers.
Output format :
The output displays a integer of missing number and repeated number separated by line.
Refer to the sample input and output format for formatting specifications.
 Single File Programming Question Given an unsorted array Arr of size

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!