Skip to content

Get some data in array #120

@ManhVuTien

Description

@ManhVuTien

I have an array of 100 objects like: [{salary:1000, value: 20},{salary:1500, value: 18},{salary:1000, value: 5}...]
Can I use this library to get 5 objects with some conditions:

  • Total salary of 5 objects <= 6000
  • Total value of 5 objects is maximum.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions