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?
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.