This one should work for all of the test cases except that you have some numerical precision issues with the last test case. Please replace it with a numerical comparison that takes into account precision (my code is returning numbers with no decimal point but the test code returns something less pretty).
Remove all the words that end with "ain"
1329 Solvers
Number of 1s in the Binary Representation of a Number
362 Solvers
1773 Solvers
Volume of a sphere given its surface area
121 Solvers
Is this triangle right-angled?
3117 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!