首页 > 试题广场 >

Which of the following stateme

[不定项选择题]
Which of the following statement(s) is(are) true?
  • Insertion/Deletion on ArrayList is faster than LinkedList
  • Queue is FIFO, Stack is LIFO
  • The worst time complexity of Searching in Binary Search Tree is O(log n)
  • For Red-Black Tree, if a node is red, then both its children are black.
每个非叶子节点只有右子节点的小顶堆中,当被查找元素是最大值时,此时为最坏时间复杂度O(n),即每个节点都会比较一遍。
发表于 2022-09-15 13:59:10 回复(0)