摘要: The basic idea is as follows:Create anew_headthat points toheadand use it to locate the immediate node before them-th (notice that it is1-indexed) nod... 阅读全文
posted @ 2015-09-01 23:55 jianchao-li 阅读(154) 评论(0) 推荐(0) 编辑
摘要: This link has a very neat code, which is rewritten below using stacksince thepushandpopoperations of it areO(1)time, while thepop_backandpush_backofve... 阅读全文
posted @ 2015-09-01 21:20 jianchao-li 阅读(203) 评论(0) 推荐(0) 编辑