Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get some data in array #120

Open
ManhVuTien opened this issue Jan 12, 2022 · 0 comments
Open

Get some data in array #120

ManhVuTien opened this issue Jan 12, 2022 · 0 comments

Comments

@ManhVuTien
Copy link

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.
@ManhVuTien ManhVuTien changed the title Get amount of data Get some data in array Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant