79596238

Date: 2025-04-28 10:25:30
Score: 1
Natty:
Report link
  1. .Order() sorts the entire array, which is O(n log n) time complexity.

  2. .Take(k) and .ToArray() are O(k) operations.

    In total, the time complexity of this code is: O(n log n)

    It will perform full sorting O(n log n), Not Quick Select O(n).

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Talal Habib