Time Complexity - Quiz

  • A O(N)
  • B O(log N)
  • C O(N^2)
  • D O(V + E), where V is the number of vertices and E is the number of edges.
  • A O(N)
  • B O(log N)
  • C O(N^2)
  • D O(V + E), where V is the number of vertices and E is the number of edges.
  • A O(N)
  • B O(log N)
  • C O(N^2)
  • D O(Nk), where k is the number of digits in the maximum number.
  • A O(N)
  • B O(log N)
  • C O(N^2)
  • D O(N + k), where k is the range of input values.