We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Oh that is clever. Very very clever. I was brute-forcing it (running every operation in full on every element from a to b) and every test from Test 5 onward was timing out.
Here's my Python 3 implementation of your solution:
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
Oh that is clever. Very very clever. I was brute-forcing it (running every operation in full on every element from a to b) and every test from Test 5 onward was timing out.
Here's my Python 3 implementation of your solution: