Minimum Rounds to Complete All Tasks
Given a list of task difficulty levels stored in the array tasks, where each task has an associated difficulty level represented by an integer, your goal is to determine and print the minimum number of rounds required to complete all tasks. In each round, you can choose to complete either 2 or 3 tasks with the same difficulty level. If it's not possible to complete all tasks, return -1.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)