正在加载图片...
6.001, Spring Semester, 2005--Quiz Il Finally, suppose we want to remove an element from the cycle. Our goal is to remove from the cycle the cell to which the supplied argument points, as well as any pointers into the cycle from removed cells. Note that if we remove the cell to which a global variable refers, we may break our data struct ure, but we will assume that it is the responsibility of t he user to manage pointers into the cycle Question 4: Provide a definit ion for the procedure delet e-cycle!. Use rotate-right, rotate-left head and set-cdr but no other list operations. Also be sure that you change the cdr of the cycl cell t hat contained the deleted value to the empty list￾       ( .& %% , ,  -    ) .!   %  -  ) . )   ,)) ) %  %& % , % . %  ) .  - %!  )  , - )   ,))  0 -0 %& , . 0/   %& 0 , , %% )  % ) %%0.  ) %   %  ) .! ￾   $-  =  )     ￾ ￾ ! D%              ￾ 0  ) % %! % 0 % ) . ) ) ￾  ) .  )  )  -  ) . %!
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有