12 ms·
Which is more efficient?
by shrthnd 4y ago
Which is more efficient?
- PaulHoule 4y agoIt is not so much as which is efficient as which is correct. Implementing many algorithms it is easy to pick the wrong one which is most problematic when it gives answers that are almost right. Pro tip. Unit tests are super effective for algorithms that are tricky. Write some simple test cases and understand how they work using the debugger.