You are viewing a single comment's thread. Return to all comments →
I think the solution given is wrong .
For the input n = 4 1 3 2 4
The possible V are
A. 1 2 4 3
B, 1 2 3 4
Hence there are 2 solutions . But the algo mentioned gives 5 as op
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock's Array Merging Algorithm
You are viewing a single comment's thread. Return to all comments →
I think the solution given is wrong .
For the input n = 4
1 3 2 4
The possible V are
A. 1 2 4
3
B, 1 2
3 4
Hence there are 2 solutions . But the algo mentioned gives 5 as op