1029 Two City Scheduling
Techniques Used
Greedy
Sorting
Approach
Sorting based on either costA or costB is not going to be enough, we also need to account for the difference between the two costs, and use a metric that can take that into account, and hence we used the dif...
raahulsaxena.hashnode.dev1 min read