
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
What are the cases for which we cannot make nums1 == nums2?
For minimum moves, if nums1[i] < nums2[i], then we should never decrement nums1[i]. If nums1[i] > nums2[i], then we should never increment nums1[i].