79098313

Date: 2024-10-17 13:32:10
Score: 2.5
Natty:
Report link

In a sorted array, the condition data[c] >= 128 is initially false for a sequence of values, but once it becomes true, it remains true for all subsequent values. This makes it easy to predict. However, with an unsorted array, the unpredictability causes branching, which comes with a performance cost.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Naveen Jayachandran