What is time complexity?
16 May 2024 (Updated 16 May 2024)
Time complexity is a measure of the number of computational steps an operation takes. When measuring and comparing the speed of different algorithms/operations, we measure their speed by the number of steps instead of the actual time (e.g., 5 seconds or 2 minutes) because the actual time will vary depending on the computer hardware whereas the number of steps is independent of the hardware.
Tagged:
Data structures & Algorithms
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment