Question: solve in c++ or java or python Explanation Here, ( operatorname{arr}=[4,2,1,4,3] ) - For index ( i=1 ), there is no possible ( j )

solve in c++ or java or python Explanation Here, \( \operatorname{arr}=[4,2,1,4,3] \) - For index \( i=1 \), there is no possible \( j \) for which both the conditions hold so the answer for \( i=1 \) is -1 . - For index \( i=2, j= 1 answer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!