I couldn't figure out why my numbers were larger than the answers in the test suite and finally realized that most of those answers were products of the unique factors of the numbers of permutations.
2403 Solvers
537 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
783 Solvers
520 Solvers
2145 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!