← Amazon questions

Partition Binary String into Powers of 5

Filed under Amazon

Given a binary string, partition it into the minimum number of substrings such that each substring represents a power of 5 (5^1, 5^2, etc.) in binary. Return -1 if impossible.

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.