You are viewing a single comment's thread. Return to all comments →
Answer doesn't have to be median number. Look at following example :
4 10 1
3 3 7 6
Optimal solution for beautiful array is :
7 7 7 7
Answer 9.
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Array
You are viewing a single comment's thread. Return to all comments →
Answer doesn't have to be median number. Look at following example :
4 10 1
3 3 7 6
Optimal solution for beautiful array is :
7 7 7 7
Answer 9.