Pair and its inialization

in line no. 35 and 36

why is it .first in both and not . second in line 36 ?

in line 68 and 71 , what does strpair and strpair+n mean?
means which element among the two , inside a pair is represented by strpair? also when we do strpair+ n then where is this n added ? to [ i ] ?

in line 77 :
swap( strpair[i] ,strpair[n-i-1] );

here why does second (i.e. keys stored ) element of the pair get swapped and not the first.

i didn’t understand this pair storing and its initialization inside the loop.

Prateek bhaiya should have cleared the background before using these terms.

completely useless !!

wasted my whole day in this :frowning:
DAMN :frowning:

https://online.codingblocks.com/app/player/49396/content/53506/7135/lecture?code=0goTokNAQTCXhHZpWc1B37mrC5vY3kVC

finally got the point :frowning:

Hi @prateek_5 do you still have any doubts? Please mark the doubt as resolved, if not.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.