結果 : algorithm for change operation in stack