Skip to main content
2 of 3
added 4 characters in body
tsh
  • 495
  • 2
  • 7

No

You cannot output \$\Theta(n^2)\$ items in \$o(n^2)\$ time. Output size is a trivial lower bound of your algorithm.

tsh
  • 495
  • 2
  • 7