题目训练
qq_41876038
这个作者很懒,什么都没留下…
展开
-
02-线性结构3 Reversing Linked List (25 分)
Given a constantKand a singly linked listL, you are supposed to reverse the links of everyKelements onL. For example, givenLbeing 1→2→3→4→5→6, ifK=3, then you must output 3→2→1→6→5→4; ifK=4, ...原创 2019-08-13 09:15:19 · 187 阅读 · 0 评论 -
02-线性结构4 Pop Sequence (25 分)
02-线性结构4Pop Sequence(25分)Given a stack which can keepMnumbers at most. PushNnumbers in the order of 1, 2, 3, ...,Nand pop randomly. You are supposed to tell if a given sequence of number...原创 2019-08-13 10:34:28 · 115 阅读 · 0 评论
分享