Plan to review Leetcode 69. Sqrt(x).
Past practice
69 sqrt(x)Blogs to study, yocoding blog is here.
codganker blog is here.
C# implementation:
Leetcode 69 C# practice is here.
Mocking practice
May 3, practice is here.May 30, C# practice is here. Root a number by power of n, for example, 0.001 - n = 3, root number is 0.1.
June 26, C# practice is here.
Julia did white boarding test on her own code, and then she found a bug on line 29 on test case 0.001, n = 3, search value 0.1. Learn to test your own code very carefully, and then find a bug on line 29. But Julia missed the bug on line 74. The peer asked the question to point out the bug on line 75, return integerValue/ 1000.0; not integerValue/ 1.0.
No comments:
Post a Comment