4 ms·
It seems to me that expanding everything to sum-of-products form and checking for equality directly would be simpler than your algorithm and would run about as
by cousin_it 9y ago
It seems to me that expanding everything to sum-of-products form and checking for equality directly would be simpler than your algorithm and would run about as fast.