《算法(第四版)》习题 1.3.8 为这样一个问题:
Give the contents and size of the array for DoublingStackOfStrings with the
input
it was - the best - of times - - - it was - the - -
中文为:
给定以下输入,给出 DoublingStackOfStrings 的数组的内容和大小。
it was - the best - of times - - - it was - the - -
我想问,这里的 DoublingStackOfStrings 是指什么?似乎前文根本就不曾提起过这样一个类。
我在这里看到了一种常见的解答,和前文的 ResizingArrayQueue 类没多少差别,为什么要这么写?
总的来说,我其实是不懂这个题目是什么意思。