sajad torkamani

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.

Leave a comment

Your email address will not be published. Required fields are marked *