Round 1
Questions:
Problem Description:
Given two arrays: array a (length n) and array b (length n+1)
Three allowed operations:
- Increase any element of array a by 1
- Decrease any element of array a by 1
- Copy any element of array a and append it to the end
Goal: Find the minimum number of operations needed to transform array a into array b
P.S output of the second test case is 8
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.