You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A button should come up beside the Add New Task clicking on which a pop showing all tasks will appear. Now there should be an option to arrange the tasks in the following manner :
1)Based on deadline (a task with the earliest deadline should come at the top)
2)Based on % of work left (a task with most work left will come at the top)
3)Based on both (here you should or can use the fractional knapsack concept, you will arrange elements by the
following formula: (% work left / No. of days left )* (3/2/1 for highest/medium/lowest priority) , the one with the highest value of the given formula will come at top)
A button should come up beside the Add New Task clicking on which a pop showing all tasks will appear. Now there should be an option to arrange the tasks in the following manner :
1)Based on deadline (a task with the earliest deadline should come at the top)
2)Based on % of work left (a task with most work left will come at the top)
3)Based on both (here you should or can use the fractional knapsack concept, you will arrange elements by the
following formula: (% work left / No. of days left )* (3/2/1 for highest/medium/lowest priority) , the one with the highest value of the given formula will come at top)
You can refer to the following article : https://stackoverflow.com/questions/5002848/how-to-define-custom-sort-function-in-javascript
The text was updated successfully, but these errors were encountered: