News for hackers. Stuff that matters.
Re:Lessons learned from the recent job hunt by charcircuit on Sunday May 08, 2022 @06:37PM (#31308712)
You don't need a recurrence relation to prove it. You can use a simple algebra where you are able to combine the complexing of algorithms. For example an O(n) algorithm followed by an O(n^2) algorithm will be O(n^2). In an interview I describe how the complexity of these simpler algorithms get combined into my final answer. I assume that the interviewer and I can agree on some basic stuff like looping over an array is O(n), inserting into a heap is O(log(n)), etc.

There are no comments on this comment yet.