Oops. I just noticed that I forgot to rename the function from "compareDoubles" (used in Problem 44690) to "compareSingles". Unfortunately I cannot make the fix now without breaking the two successful submissions. Sorry about any confusion. —DIV
Good problem, but it would be better if base-10 or base-2 was adopted as a standard at the description. It is confusing to keep changing them. And the function name should probably be compareSingles and not compareDoubles. You can fix the test suite by using try and catch while accepting both names for the function.
Make one big string out of two smaller strings
1148 Solvers
Numbers with prime factors 2, 3 and 5.
166 Solvers
Crossing to Kissing - Untangle the Lines
24 Solvers
Combinations without using nchoosek
66 Solvers
Calculate the probability that at least two people in a group share the same birthday.
61 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!