738 views
0 0 votes
Given two sorted arrays of n elements with distinct integers.How much time it will take to find middle of union if these two arrays.?

 

Can be done in logn but how?

Please log in or register to answer this question.

Position:
Show:

Related questions

5 5 votes
2 2 answers
793
793 views
GO Classes asked Oct 6, 2025
793 views
An algorithm performs a linear search for an element $k$ in an integer array of size $N$. The algorithm iterates through the array sequentially, starting from the first e...
9 9 votes
2 2 answers
817
817 views
GO Classes asked Oct 6, 2025
817 views
Let $S$ be a sorted array of $n$ distinct positive integers. Let $T(n)$ denote the time complexity of the most efficient algorithm to determine if there exist three indic...
1 1 vote
1 1 answer
1.1k
1.1k views
Sajal Mallick asked Nov 28, 2023
1,113 views
Consider the problem that given a set Sof n integers and another integer x, whether or not there exist two elements in S whose sum is exactly x. What is the worst case ti...
0 0 votes
0 0 answers
526
526 views
Sajal Mallick asked Nov 28, 2023
526 views
What will be the complexity?Q. 8 Given a set $A=\left\{A_{1}, A_{2}, \ldots, A_{n}\right\}$ of $n$ activities with start and finish time ( $S i, f i$ ), $1 \leq i \leq n$...