我使用一個類似這裏所涉及的非遞歸化妝的實現:http://evbergen.home.xs4all.nl/nonrecursive-make.html 這裏的問題的一個例子。 主Makefile包括foo/Rules.mk。 foo/Rules.mk包含片段: # Here, d is bound to foo, the path to the current directory
$(d)/fo
我想創建一個非遞歸版本的MergeSort,但由於某些原因合併是保持代碼從整體上運行。 歸併代碼: public void mergeSort(int[] input)
{
int n = input.length;
int size;
int l;
for (size = 1; size <= n-1; size = 2*size)
{