Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
your dedication and consistency >>>>> laptop khulte hi aaj k question ki video bhi aa jaati h.
what if seats = [0,1,2,3] & students = [1,2,3,4] will this alg stills works on this testcase
yes it really works, sorry for asking bro
can't we do it using hashmap that will be same as taking arr[101]class Solution {public: int minMovesToSeat(vector& seats, vector& students) { multimapmp1; multimapmp2; for(int i=0;ifirst); it1++; it2++; } return sum; }};
bhaii thoda clear bola krr
your dedication and consistency >>>>> laptop khulte hi aaj k question ki video bhi aa jaati h.
what if seats = [0,1,2,3] & students = [1,2,3,4] will this alg stills works on this testcase
yes it really works, sorry for asking bro
can't we do it using hashmap that will be same as taking arr[101]
class Solution {
public:
int minMovesToSeat(vector& seats, vector& students) {
multimapmp1;
multimapmp2;
for(int i=0;ifirst);
it1++;
it2++;
}
return sum;
}
};
bhaii thoda clear bola krr