Merge k sorted arrays

How are we assigning row amd colums as current.first and current.first.second. where are we using custom class.
Can you please explain this

@dips123deepali_c25f140838182212,
here pair<int,pair<int,int>> current is used (this is the custom class thing here)
it has 3 values first value can be accessed by current.first
2nd value by current.second.first
3rd value by current.second.second

to know about pair u can check this : https://www.educba.com/c-plus-plus-pair/

I get it but then it should be like custom class.first,current.second.first,customclass
.second.second

@dips123deepali_c25f140838182212,
he made a variable named current of type node so he is using like that

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.