結果 : linear search algorithm time and space complexity