liuml07
BAN USER
Comments (4)
Reputation 10
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
What's the correct result of the example?
1) 12 -> 7 -> 3 -> 10
2) 1 -> 2 -> 7 -> 4 -> 0
3) 2 -> 8 -> 3 -> 0 -> 1
The answer depends the three cases. I don't see a clear clue what the problem is.
As for the 1) and 3), the solution is quite straightforward. However, we should visit the two lists in advance, reversing or calculating the merging point.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
- liuml07 December 15, 2013