Merge ksorted arrays

How are we using custom class. Can you explain the working of custom class in the code

hi @dips123deepali_c25f140838182212,
see u have to keep 3 info regarding 1 value i.e value, which array it came from here x and which index so that you can add next value here y.
So how what data structure you’ll use?
as such we dont have predefined so we make our one class (customizing) which can store 3 values here bhaia has used pair of pair but u can also use your own classes and object ( u can refer to oops lecture if u dont get these things )

its clear now…?