Found something weird with codes posted in the links. I am getting different outputs for the intermediate and the final codes for the input of "5; 1,2,3,4,4". Can someone help?
> Starting from an array A that has n distinct integers
I don't know in what ways they are differents, but these programs were not designed to work with duplicates in the input. This probably explains the results.
I don't know in what ways they are differents, but these programs were not designed to work with duplicates in the input. This probably explains the results.