@rishup_nitdgp Can you please explain this optimisation?
If we have, 2 2 as the array then we only need to replace anyone of the two with 1 but why answer is 2? Didn’t get this
If we have, 2 2 as the array then we only need to replace anyone of the two with 1 but why answer is 2? Didn’t get this