TDD Practice - Divide without Divide (continued)
So, did you have a better solution to implement divide without /?
The following tests from this post?
(The first post in this series is here)
Before moving on, let’s analyze your solution.
- How long is your solution for those tests?
- How long did your solution take to implement?
- What is the runtime of the solution?
Given that, can you implement a better solution for those tests while maintaining requirements?
Can you get your solution to have a runtime of: O(1)? While passing
all tests within the constraints of the original requirements. If so,
why? If not, why?
This post continues here.