Help me out there

@KartikKhariwal are u there ?

Hey @shivammishra20121999
What is the issue?

@Kartikkhariwal1 it is failing in some test case ?

Since we have to find median of both
Line 53 :

       for(int i=0;i<((n1+n2)/2)-1;i++) 

Line 71 :

       for(int i=0;i<((n1+n2)/2);i++)

If this resolves your query then please mark it as resolved :slight_smile:

@Kartikkhariwal1 how to do in o(log(m+n))

Hey @shivammishra20121999
Think in terms of Binary Search.

@Kartikkhariwal1 okay brother