bluespace's blog

By bluespace, history, 5 years ago, In English

When multiple objects of weight are given,
Obtain the maximum number of objects that can be balanced

ex)
input : [2,4,4,6]
output : 3 ( [2,4,6] ), (not [4,4] = 2)
.....|
..-----
..|.....|
----..6
|....|
2..4

the number of objects : 1~100,000
the weight of an object : 1~100,000

Full text and comments »

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