Am a Software Engineering student i watch your video to clear my thought amd your videos help me a lot. Your video are best for beginners i can fell your efforts God Give You Success
for those searching the ans of the link's ques by comparator fnctn #include using namespace std; bool cmp(pair a, pair b) { if (a.first != b.first) return (b.firsta.second); } int main() { int n; cin >> n; vector arr(n); for (int i = 0; i < n; i++) { cin >> arr[i].second >> arr[i].first; } sort(arr.begin(), arr.end(), cmp); for (int i = 0; i < n; i++) { cout
thanks you! this was exactly what I was looking for. Thank you so much! you cleared my concept very well! your way of explaining is damn good. (don't know if it is right to say or not:- but you are cute :P)
@@iamluv by the way ur videos helps me lot in in my journey ek doubt bhi tha cp vs web/ andr dev kucch btaa skte ho konsa path Sahi hai tier 3 college se hun
In one of your video you talked about your interview experiences in which you talked about a problem wifi router can you make a video on that so we can know how you have approached the problem during interview.
i dont remember my interview experience honestly if you are looking for my approach at that time.. it was almost 1 and half years ago if you want solution to that problem you can check link of that problem in desc of that video and you can see editorial on codeforces then.
brother u not use constant in comparator and i use ur comparator without const and my problem c got wrong in system testing it gives runtime error in one case ,after using constant it got accepted
@@iamluv achcha bhaiya 🙏 thanks For instant reply Kaafi achcha course hai ye meri kaafi improvement ho rahi hai aur kai cheeze to c++ basic me bhi pehli baar suni Thanks
This was truly so well explained. Just one request from my side, please don't discontinue this series ever.
Literally ❤, please don't discontinue this !
We love your content, we love you luv 💞,
Am a Software Engineering student i watch your video to clear my thought amd your videos help me a lot. Your video are best for beginners i can fell your efforts God Give You Success
This is the best ever explanation of the sort comparators I have ever seen.. Bhai you are generating truely valueable content. Thanks 🙏
i was confused about this method but after watching your video I am feeling confident. thank you sir 🙌🙌
This guy is underrated. Thanks a ton, mate. This really helped a lot
Before few months I could not able to understand this video but today I was able to understand this video completely!!! Thank You
same bro
for those searching the ans of the link's ques by comparator fnctn
#include
using namespace std;
bool cmp(pair a, pair b)
{
if (a.first != b.first)
return (b.firsta.second);
}
int main()
{
int n;
cin >> n;
vector arr(n);
for (int i = 0; i < n; i++)
{
cin >> arr[i].second >> arr[i].first;
}
sort(arr.begin(), arr.end(), cmp);
for (int i = 0; i < n; i++)
{
cout
Bro plz vo latter count vale ka solution bhejo na I am beginner so plz give answer related to topics which coverd till this video plz bro🙏
@@crazybanna228 #include
using namespace std;
int main()
{
map m;
string s;
cin>>s;
int count = 0;
int index;
char find;
for(int i = 0; icount){count = it.second ;find = it.first;}
}
cout
Bro I must say your way of teaching this complex things helps us to learn in simpler way
This is one of your best videos in competitive programming course
😀😀
Trust me bro.. You are "GOD" for me. My doubts for comparator function is solved for whole life!!
This is the good shit man. Clarified comparators like nuthin else. Thanks!
The bloopers are funny 😂😂especially macchar wala!!! But jokes apart video bahut helpful hai bro thanks 💯💯❤
wow it helped me .now i can sort any sequence any way i want .
I was really confused about this comparison func for almost 1 month but this video is crystal clear... Thanks bhaiya 😍
yee bhai,subeh se dimag khrab tha ye question ko leke
tq;
tumhara channel aur subscribers maangta hai bidu XD
are waaah ajj finally comparators samaj aa hi gaye
TRICK:-
just return what u want
loved the way you explained bro! it compelled me to subscribe right away !
Best ever explanation of sort function 👍 thanks
maza aa gaya bhai tumne pura concept clear kar diya love U bhai
thanks you! this was exactly what I was looking for.
Thank you so much! you cleared my concept very well! your way of explaining is damn good.
(don't know if it is right to say or not:- but you are cute :P)
Hahaha Thanks xD
@@iamluv comments boht sahi pkde reply Krne ke liye 😂😂 # men will be men
@@iamluv by the way ur videos helps me lot in in my journey ek doubt bhi tha cp vs web/ andr dev kucch btaa skte ho konsa path Sahi hai tier 3 college se hun
Real teacher feel hi aa jata hai😊
Great explanation, my first video of your channel
Thank you brother... Your videos always helps me❤
Finally someone explained it! Thanks :D
fascinating video Luv. I killed that thumbs up on your video. Continue to keep up the good work.
In one of your video you talked about your interview experiences in which you talked about a problem wifi router can you make a video on that so we can know how you have approached the problem during interview.
i dont remember my interview experience honestly if you are looking for my approach at that time.. it was almost 1 and half years ago if you want solution to that problem you can check link of that problem in desc of that video and you can see editorial on codeforces then.
Masterji tussi great ho ❤️❤️🙏🙏
Bhai best ever video on comparator
Thank you Bhaiya 🙏🙏🙏♥️😊😊
Yeah .. using comparator, that question becomes very easy. Nice !
Bro plz vo latter count vale ka solution bhejo na I am beginner so plz give answer related to topics which coverd till this video plz bro🙏
This guy saved my day.
Lov U love bhai ♥️
Simple sharp to the point so easy to understand.Thank you bhaiya
Your canines are really sharp!!!!!
the links given in the description for practice the problems are not working.
i dont know why you dont have much subscribers but your videos are awesome
great teaching skills
excellent work. you are doing a lot of help to community. thank you very much.
mjaaa aa gya bhai kya cheez banayi hai.❤❤❤❤❤❤❤❤❤❤❤❤
That was truely awesome.Just to the point .
Uhh r giving yr 100% & that's results uhh also know ❤
Thank you sir ❤️
very nicely explained!! loving the course
UNDERSTOOD SIR❤🙏🙇♂
i'm stuck on a problem and i want to do the same thing...with vector of pairs..thx man
bhott shi chij bata diye guru maja aagya thank youu sare dought clear kr diye broo
so nicely explained.. thanx bro
excellent explanation brother
OP🔥
So Nice Explanation
Excellent videos, You are working very hard in making such videos
Superb video . Best competitive programming concepts
you are the best.......mausm.
Nice explanation !
You are an incredible brother!
your video is so helpful.
when you gonna start DP or GRAPH part??
I love the bloopers, thank you
you are a genius
1ch number bhava!!
great explanation bro
Very helpful luv !!
brother u not use constant in comparator and i use ur comparator without const and my problem c got wrong in system testing it gives runtime error in one case ,after using constant it got accepted
best explanation
May god bless you
Thank u
Very much helpful
The explanation was so good.
how did u add input.in and output.in file without freopen? Pls I want to know
Watch Third video from this playlist....
thank you very much sir
Bohut shukriya bhaiya
very well explained❤️👍
Bhaiya sliding window ki video banao..
sir the links 2,3 of practice problems in description are not working(404 page not found); can u please update them..
Bro plz vo latter count vale ka solution bhejo na I am beginner so plz give answer related to topics which coverd till this video plz bro🙏
Kudos bro.
Questions ki second aur third link kam nahi kar rahi , thanks for the video anyways
Thank you!
Thanks, this was a great explanation!
same code vs code pe shi putput de rha hai lekin hackerearth pe wrong solution deta hai kyon
High value content. 💜
< means descending order sirji
thank you very much
Thank you Luv
thank u cp master 🪔
return what you want to get...NICE
thank you so much bhaiiya
Thank you
why dont we need to pass arguments in comparator
Nice video bro 👍👍
Bhai ye comparator fun aapne likha hai sort function ke parameter me lekin comparator func ka naam likha hai bas bracket nahi lagaya???
function call nhi krna hai, function pass krna hai
@@iamluv achcha bhaiya 🙏 thanks
For instant reply
Kaafi achcha course hai ye meri kaafi improvement ho rahi hai aur kai cheeze to c++ basic me bhi pehli baar suni
Thanks
but how can we use map m; since marks can be duplicate
@LUV ,can you please explain when to use this comparator function using overloading ``` struct compare
{
bool operator()(pair a,pair b)
{
if(a.second
great work bro
well explained. thanks sir
Is it necessary to have comparators defined as static if defined inside a class?
Thanks!!
Where is the link of video of ques that you did with nesting and maps
Can we use inbuilt sort function in set or multiset? I tried but it was showing error.
Great explanation.
Thanks man
thanks
great explaination😄