HackerRank
HackerRank copied to clipboard
Update Solution.cpp
I set the initial value of the maximum variable to the minimum integer value. This way, the if condition inside the loop becomes unnecessary in each iteration.