• + 5 comments

    At first i have also tried the same idea only.but max is not working incase of negative values.....nd then i went for sorting and its works for all test cases......