結果 : constant time complexity algorithm