Skip to content

Commit

Permalink
feat: solved day3 medium
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagpreet153 committed Mar 24, 2024
2 parents fe6104d + 802be6f commit 39504ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions medium/day_3/solution.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//Write your code here
//Code by Jagpreet 153
//Aprroach sort the tasks based on duration in ascending order and then calculate the reward by subtracting the completion time from the deadline.
//Code by Jagpreet153
// Approach stored the duration and deadline in a map and then iterated over the map and calculated the reward for each task and added it to the ans variable and then printed the ans variable.
#include<bits/stdc++.h>
using namespace std;
long long int taskScheduling(vector<pair<long long int, long long int>>& tasks) {
Expand Down

0 comments on commit 39504ec

Please sign in to comment.