Which of the following four algorithms exhibit linear complexity? Select all that apply.
A、Calculating the average in a list.;
B、Counting the number of occurrences for a target value in a list。;
C、Printing the first element in a list.;
D、Given a list of numbers, multiplying every other number by 5.
发布时间:2025-11-21 02:17:40