[Community Puzzle] Assignments Overdue - Puzzle discussion

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @java_coffee_cup,validated by @Eng.Adnane,@TBali and @User123.
If you have any issues, feel free to ping them.

Hi,

The classification as easy seems under estimated on my understanding.

The code requires the use of iteration based on advanced objects which are not basic by definition.

For a person who is used to manipulate such algo it is obviously an easy one for a median gamer, I don’t think it is.

The puzzle is not posted from long time but 72% seems not so much aligned with easy difficulty.

It is an open for sure only my opinion :slight_smile:

This one is deceptive .. i thought it was easy as the highest penalty had to be sorted to be first but then the 1-1 2-2 3-3 one failed cause the order didnt matter so i had to do it in the order it came in.. which throws my whole theory about highest penalty first .. fair enough .. then i thought what about the absolute of d - p which only worked for the first test case >.< and testing every possible combination doesnt work either due to the sheer number of projects in the test constraints… and now im out of ideas … the sorting algo isnt the problem its my math skills i suppose .. is there anyway you guys could assist without giving the answer away ? maybe a way i could think about or approach this differently.. dont wanna just ask ai .. it tends to just give the answer :stuck_out_tongue:

Think about possible 2-assignment scenarios. Then deduce a generalised formula or rule.