• + 3 comments

    Hi, I'm not sure that

    int min=100;
    int max=1;
    

    won't cause a problem, what about doing:

    int min=elements[0];
    int max=min;
    

    Best regards,