[Solved] Maximum Score Of Spliced Array LeetCode Contest Problem
![[Solved] Maximum Score Of Spliced Array LeetCode Contest Problem [Solved] Maximum Score Of Spliced Array LeetCode Contest Problem](https://realcoder.techss24.com/wp-content/uploads/2022/06/Solved-Maximum-Score-Of-Spliced-Array-LeetCode-Contest-Problem.png)
You are given two 0-indexed integer arrays nums1 and nums2, both of length n. You can choose two integers left and right where 0 <= left <= right < n and swap the subarray nums1[left…right] with the subarray nums2[left…right]. For example, if nums1 = [1,2,3,4,5] and nums2 = [11,12,13,14,15] and you choose left = 1 and right = 2, nums1 becomes [1,12,13,4,5] and nums2 becomes [11,2,3,14,15]. You may choose to apply…