Hello, I just gave IBM's OA for Full Time Software Developer (2024). The test was 60 Minutes with 2 Questions.
Q1. I wasn't able to come up with the logic for this one and would really appreciate if someone could provide a code.



Q2. The exact same question as this one (https://leetcode.com/discuss/interview-question/1874750/minimize-array-cost). I was able to do it in Java using the Python code for the logic, however, the answer was incorrect for larger outputs. Could it have something to do with the fact that the given Array was List and we had to return a long?