@Shashank :  as i have mentioned in the question , no sorting allowed.
if question would have allowed sorting then why not sort both array and
compare it would be much simpler and no need of doing costlier operation
like finding power.

complexity = O(nogn) + O(mlogm) + O(n)

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

Reply via email to