Problem 2068. Determine the square root
Solution Stats
Problem Comments
-
2 Comments
Marcel
on 20 Dec 2013
Hello Samantha,
I think you should change "assert(isequal(your_fcn_name(x),y_correct))
" to "assert(isequal(your_fcn_name(n),y_correct))"
Ned Gulley
on 14 Jan 2014
I made the suggested change to the test suite and re-scored.
Solution Comments
-
1 Comment
Sohrab Karamroudi
on 21 Oct 2018
Good
-
1 Comment
J-G van der Toorn
on 23 Dec 2013
I believe there is some tricky code in the test suite that has to be overcome by hacking the Cody Scoring server, and execute a function your_fcn_name before it is even called. Or a mechanism to change all x's in n's.
Problem Recent Solvers547
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1199 Solvers
-
Check if number exists in vector
7272 Solvers
-
Cell Counting: How Many Draws?
1058 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
360 Solvers
-
378 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!