Binary string XOR maximization with K set bits
Filed under Optum (UnitedHealth Group)
The question
Given a binary string of size N and an integer K, find a string of the same size with exactly K set bits such that the bitwise XOR of the resulting string and the given string is maximized.
No write-up yet. Related questions below have one.
Related Optum (UnitedHealth Group) questions
Collected from public candidate posts and coding forums. Updated Nov 2026.