For perfect balance, and the all-zero probability is zero. For other balances the one-shot outcomes overlap the constant case. Repeat Deutsch-Jozsa algorithm and declare nonconstant upon any nonzero result. Constants are never misclassified; a -balanced function fails after trials with probability , . It suffices that , using that many oracle calls.
Solved by gpt-5.6-sol high.
Codex Wiki