From 8699f9ead5d987d4a8eb728cf90f853b721b7652 Mon Sep 17 00:00:00 2001 From: chayan das Date: Sun, 13 Jul 2025 21:54:50 +0530 Subject: [PATCH] Create 2410. Maximum Matching of Players With Trainers --- ... Maximum Matching of Players With Trainers | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 2410. Maximum Matching of Players With Trainers diff --git a/2410. Maximum Matching of Players With Trainers b/2410. Maximum Matching of Players With Trainers new file mode 100644 index 0000000..35242ba --- /dev/null +++ b/2410. Maximum Matching of Players With Trainers @@ -0,0 +1,19 @@ +class Solution { +public: + static int matchPlayersAndTrainers(vector& p, vector& t) + { + const int n=p.size(), m=t.size(); + sort(p.begin(), p.end()); + sort(t.begin(), t.end()); + int match=0; + for (int i=0, j=0; i