Q4:follow the chain
http://www.pythonchallenge.com/pc/def/linkedlist.php
先点图片,然后按照网页提供的数字网页向下点,注意中间有个网页有分支。
代码:
得到第一个结果是92118,并获得提示信息“Yes. Divide by two and keep going.” ,92118/2得到46059,将其设为代码中num的初始值,再运行代码,得到最终结果peak.html。
Q4:follow the chain
http://www.pythonchallenge.com/pc/def/linkedlist.php
先点图片,然后按照网页提供的数字网页向下点,注意中间有个网页有分支。
代码:
得到第一个结果是92118,并获得提示信息“Yes. Divide by two and keep going.” ,92118/2得到46059,将其设为代码中num的初始值,再运行代码,得到最终结果peak.html。