0

There was a set of cards with numbers from 1 to N .One of the card is now lost .

Determine the number on that lost card given the numbers for the remaining cards. Given a number N ,followed by Nㄧ1 intergers representing the numbers on the remaining cards (distinct intergers in the range from 1 to N).Find and print the number on the lost card. Ex input:3 #3 rows 3 2 output:1 Could someone do it for me?

8th Feb 2019, 8:45 AM
周志桓
周志桓 - avatar
1 Antwort
+ 2
No, but you can show us your approach, explain where exactly you have diffculties to complete the task and we will help you.
8th Feb 2019, 9:34 AM
Matthias
Matthias - avatar