โ† Amazon questions

Minimum steps to make product of array equal to 1

Filed under Amazon

Find the minimum operations to change each element in an array to 1 or -1 such that the total product of the array becomes 1. Each operation allows changing an element's value to 1 or -1.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.