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.