Python3 Solution
\n\nclass Solution:\n    def maxProfitAssignment(self, difficulty: List[int], profit: List[int], worker: List[int]) -> int:\n            sorted_worker=sorted(wo
\n```\nclass Solution:\n    def maxProfitAssignment(self, difficulty: List[int], profit: List[int], worker: List[int]) -> int:\n            sorted_worker=sorted(worker)\n            jobs=zip(difficulty,profit)\n            sorted_jobs=sorted(jobs)\n            n=len(sorted_jobs)\n            best_profit=0\n            total_best_profit=0\n            i=0\n            for skill in sorted_worker:\n                while i<n and skill>=sorted_jobs[i][0]:\n                    best_profit=max(best_profit, sorted_jobs[i][1])\n                    i+=1\n                total_best_profit+=best_profit\n            return total_best_profit        \n```
['Python', 'Python3']