• 2022-07-25 问题

    下面的列表操作中哪些是O(1)的? A: list.pop(0) B: list.pop() C: list.append(10) D: list[10]

    下面的列表操作中哪些是O(1)的? A: list.pop(0) B: list.pop() C: list.append(10) D: list[10]

  • 2022-07-25 问题

    列表list=[1,2,3,4,5],下列选项中不能删除末尾元素的是? A: del list[4] B: list.reverse() C: list.pop() D: list.remove(5)

    列表list=[1,2,3,4,5],下列选项中不能删除末尾元素的是? A: del list[4] B: list.reverse() C: list.pop() D: list.remove(5)

  • 2022-05-29 问题

    list(range(2,12,2))[:-2].pop(),删除的值是_________。

    list(range(2,12,2))[:-2].pop(),删除的值是_________。

  • 2022-05-29 问题

    Which ones of the following could be used to express “流行音乐榜”? A: music hit parade B: music charts C: pop music list D: pop music rank

    Which ones of the following could be used to express “流行音乐榜”? A: music hit parade B: music charts C: pop music list D: pop music rank

  • 2022-07-25 问题

    下列方法中,可以对列表元素排序的是( )。 A: pop() B: list() C: max() D: sorted()

    下列方法中,可以对列表元素排序的是( )。 A: pop() B: list() C: max() D: sorted()

  • 2022-06-04 问题

    Which<br/>of the following is true about linked list implementation of stack?<br/>() A: In<br/>push operation, if new nodes are inserted at the beginning of linked<br/>list, then in pop operation, nodes must be removed from end. B: In<br/>push operation, if new nodes are inserted at the end, then in pop<br/>operation, nodes must be removed from the beginning. C: Both<br/>of the above D: None<br/>of the above

    Which<br/>of the following is true about linked list implementation of stack?<br/>() A: In<br/>push operation, if new nodes are inserted at the beginning of linked<br/>list, then in pop operation, nodes must be removed from end. B: In<br/>push operation, if new nodes are inserted at the end, then in pop<br/>operation, nodes must be removed from the beginning. C: Both<br/>of the above D: None<br/>of the above

  • 2022-06-01 问题

    下列关于LinkedList类的方法,不是从List接口中继承而来的是() A: toArray() B: pop() C: remove() D: isEmpty()

    下列关于LinkedList类的方法,不是从List接口中继承而来的是() A: toArray() B: pop() C: remove() D: isEmpty()

  • 2021-04-14 问题

    输入序列为ABC,可以变为CBA时,经过的栈操作为: push,pop,push,pop,push,pop|push,pop,push,push,pop,pop|push,push,pop,pop,push,pop|push,push,push,pop,pop,pop

    输入序列为ABC,可以变为CBA时,经过的栈操作为: push,pop,push,pop,push,pop|push,pop,push,push,pop,pop|push,push,pop,pop,push,pop|push,push,push,pop,pop,pop

  • 2022-05-31 问题

    输入序列为abc,若输出序列为bca,经过的栈操作为( ) A: push,pop,push,pop,push,pop B: push,push,push,pop,pop,pop C: push,push,pop,push,pop,pop D: push,pop,push,push,pop,pop

    输入序列为abc,若输出序列为bca,经过的栈操作为( ) A: push,pop,push,pop,push,pop B: push,push,push,pop,pop,pop C: push,push,pop,push,pop,pop D: push,pop,push,push,pop,pop

  • 2022-06-01 问题

    Python的列表list命令中,pop方法在不指定参数时默认删除末尾元素,也可以指定删除某个位置的元素。( )

    Python的列表list命令中,pop方法在不指定参数时默认删除末尾元素,也可以指定删除某个位置的元素。( )

  • 1 2 3 4 5 6 7 8 9 10