Computer Science & IT

Download Q&A
Q. What is the space complexity of a recursive depth-first search (DFS) on a binary tree?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the space complexity of a recursive depth-first traversal of a binary tree?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the space complexity of a recursive function that uses a linked list to store n elements?
  • A. O(1)
  • B. O(n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the space complexity of a recursive function that uses a stack for function calls?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the space complexity of a recursive function that uses a stack to perform depth-first search on a graph?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the space complexity of a recursive function that uses a stack to store function calls?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the space complexity of a recursive function that uses a stack?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the space complexity of a recursive function that uses O(n) space for its call stack?
  • A. O(1)
  • B. O(n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the space complexity of a recursive function that uses O(n) stack space?
  • A. O(1)
  • B. O(n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the space complexity of a recursive function that uses stack space?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the space complexity of a recursive implementation of a binary tree traversal?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the space complexity of a recursive implementation of binary tree traversal?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the space complexity of a recursive in-order traversal of a binary tree?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the space complexity of a recursive inorder traversal of a binary tree?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the space complexity of a recursive pre-order traversal of a binary tree?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the space complexity of a recursive preorder traversal of a binary tree?
  • A. O(1)
  • B. O(n)
  • C. O(h)
  • D. O(n log n)
Q. What is the space complexity of a recursive traversal of a binary tree?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the space complexity of a typical dynamic programming solution that uses a 2D table?
  • A. O(1)
  • B. O(n)
  • C. O(n^2)
  • D. O(n log n)
Q. What is the space complexity of an array of size n?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the space complexity of BFS in a graph with V vertices?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(1)
Q. What is the space complexity of BFS in a graph?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(1)
Q. What is the space complexity of BFS in the worst case?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V^2)
Q. What is the space complexity of BFS using an adjacency list representation?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(1)
Q. What is the space complexity of BFS?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V^2)
Q. What is the space complexity of binary search when implemented iteratively?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the space complexity of binary search?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the space complexity of Depth-First Search (DFS) in the worst case?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(log V)
Q. What is the space complexity of Depth-First Search (DFS) using recursion?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(1)
Q. What is the space complexity of DFS in the worst case?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(V^2)
Q. What is the space complexity of DFS using a recursive approach?
  • A. O(V)
  • B. O(E)
  • C. O(V + E)
  • D. O(1)
Showing 1711 to 1740 of 3237 (108 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely