YoussefObama's blog

By YoussefObama, 3 years ago, In English

How did people solve this problem based on the fact that

max(a_1, a_2, ..., a_n) — min(a_1, a_2, ..., a_n) = x where a_1 + a_2 + ... + a_n = x^2

how is this correct?

  • Vote: I like it
  • -4
  • Vote: I do not like it

| Write comment?
»
3 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

It is not coreect for all {a_i}. The problem statement is to find such {a_i}

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

x = max(array) $$$-$$$ min(array) = sqrt(sum)
Then x^2 = sqrt(sum)^2 = sum