Big-O only cares about the most dominant term.
As n gets large, it really doesn't matter whether it's 3nē +4n +3 or 5nē +8n +7
The result is still only O(Nē).
Big-O only cares about the most dominant term.
As n gets large, it really doesn't matter whether it's 3nē +4n +3 or 5nē +8n +7
The result is still only O(Nē).
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.