In a recent interview I was asked:
If you have 2 lists
lišta LISTB
Each of them has a size of 1000 and contains the same elements 1 - 1000. If an element, N is added to listB, how can you determine the value of this element?
I answered correctly, saying to subtract listB from list A, and the rest would be a value.
He then said that if we just had listB after adding N. How do you determine the value that was added?
I could not answer this question !!!! I should know this, but I just don’t think about it. The hint he gave was to do something similar, as in the first task.
Any suggestions?
source
share