Asked in PPSC, FPSC and other one-paper exams (compiled from unofficial resources).
Data Structures & AlgorithmsTime & Space Complexity
The efficiency of an algorithm is primarily determined by which time factor?
- A.Measuring the compilation time
- B.Counting the number of lines of code
- C.Counting the number of key operationsCorrect answer
- D.Measuring the execution time in seconds
Timed quizzes, instant results, track your progress — free
Practice these MCQs in the appQuick fact: The efficiency of an algorithm is primarily determined by counting the number of key operations.