How to approach this problem with char array

How to approach this problem with char array , I know we can use simply string but if I use concat( ) function how can I compare it ?
or there is any other way to slove this using char array

@mahroosanwar0901_2642b14836027bbf hiii you have to comparator function on that basis you concat strings

@mahroosanwar0901_2642b14836027bbf and time of this method is nlogn which is good

@mahroosanwar0901_2642b14836027bbf time of this method is nlogn which is good so ya u can try this

ya that part I got it , but can you please code this in char array it will help me in good understanding in char array.
according to course contet string is not covered yet please do this using char array

@mahroosanwar0901_2642b14836027bbf i didnt try before but i think to it may be difficult using char array thats why we use string to just make code easy but i see approach

okay, give it a try please

hey please tell me how to approch to this problem using character array

@mahroosanwar0901_2642b14836027bbf not this question is solved by using string i will try all things and this can be done with string so when u came up with string try this using string

okay u can mark it as resolved

@mahroosanwar0901_2642b14836027bbf okk please give good feedback if possible

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.