Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 3690. Split and Merge Array Transformation
Given two length-n arrays where nums2 is a permutation of nums1, find the minimum number of operations that cut out any contiguous subarray from nums1 and reinsert it (in original order) at any position to transform nums1 into nums2. In other words, compute the minimum number of contiguous block-move (cut-and-paste) operations needed to convert one permutation into the other (n ≤ 6).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.