79605940

Date: 2025-05-04 18:39:27
Score: 1.5
Natty:
Report link

Another aproach to solve this problem with the help of streams:

int[] A = { 1, 2, 3, 4 };
double arrASum = IntStream.of(A).map(s -> s * s).sum();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RandomNpc