i recently encountered a logic problem which is this:
There is a list(original) that contains all numbers from 1...n, without duplicates and not necessary in order. We dont know that list but we know
5 other lists which are the result of the original in that way: The first list came from moving one number from the original list to another position( be careful, move not exchange),
the second list came from moving another different number from the original list. What actions you must do to find the original list?
for example: 5 lists={[1,2,5,3,4],[1,5,3,4,2],[4,2,1,5,3],[2,3,1,5,4],[2,1,3,4,5]} and the original is Original=[2,1,5,3,4].
Question
nikolas
Hello everyone,
i recently encountered a logic problem which is this:
There is a list(original) that contains all numbers from 1...n, without duplicates and not necessary in order. We dont know that list but we know
5 other lists which are the result of the original in that way: The first list came from moving one number from the original list to another position( be careful, move not exchange),
the second list came from moving another different number from the original list. What actions you must do to find the original list?
for example: 5 lists={[1,2,5,3,4],[1,5,3,4,2],[4,2,1,5,3],[2,3,1,5,4],[2,1,3,4,5]} and the original is Original=[2,1,5,3,4].
Link to comment
Share on other sites
20 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.