start thinking as we do in a binary search.
if we want to find the kth smallest no., then compare the k/2 elements
of both the arrays. And depending upon the answer, go for further
iterations....
Try it out..    Plz ask if u don't understand. I hv just droped a small hint....


Ankit Sambyal
BITS Pilani




On Fri, Jun 24, 2011 at 10:50 AM, Akshata Sharma
<akshatasharm...@gmail.com> wrote:
> @Anantha
> can you explain the logic please?
> On Fri, Jun 24, 2011 at 10:21 PM, Anantha Krishnan
> <ananthakrishnan....@gmail.com> wrote:
>>
>> Check thisĀ http://ideone.com/C8fQC
>> Thanks & Regards,
>> Anantha Krishnan
>>
>> On Fri, Jun 24, 2011 at 10:18 PM, Decipher <ankurseth...@gmail.com> wrote:
>>>
>>> Can anybody please explain how to solve this question with logarithmic
>>> time complexity ?
>>>
>>> Write the code/algorithm to find the k-th Smallest Element in the
>>> Union of Two Sorted Arrays .
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Algorithm Geeks" group.
>>> To post to this group, send email to algogeeks@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> algogeeks+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to