結果 : algorithm for array operations