How to find the index of a number in a sorted but rotated array? [closed]
Closed 2 days ago.
How to find the index of a number in a sorted but rotated array? [closed]
Closed 2 days ago.
How to find the index of a number in a sorted but rotated array? [closed]
Closed 2 days ago.
How to find the index of a number in a sorted but rotated array? [closed]
Closed 2 days ago.
How to find the index of a number in a sorted but rotated array? [closed]
Closed 2 days ago.
How to find the index of a number in a sorted but rotated array? [closed]
Closed 2 days ago.
I was working on a problem and did not get why my solution was actually signifcantly more complex
problem:Given three Sorted arrays in non-decreasing order, print all common elements in these arrays.
solution suggests declaring 3 vars i,j and k for every array and to increment them only when the element is a minimum. But why not incrementing it anyways, as long as the element is not the maximum?!