One Line Method - bitwise approach
\n\nvar minChanges = (n, k) =>\n    ((n & k) === k) ? (n ^ k) .toString(2).replace(/0/g, \'\').length : -1;\n\n\n\n#### it\'s a challenge for you to explain how
\n```\nvar minChanges = (n, k) =>\n    ((n & k) === k) ? (n ^ k) .toString(2).replace(/0/g, \'\').length : -1;\n\n```\n\n#### it\'s a challenge for you to explain how it works\n#### please upvote, you motivate me to solve problems in original ways
['JavaScript']