Présentation du problème

Sum of Elements


Calculate the sum of all elements in an array of integers.

easy
Generate Goal Tree Build Plan

Goal Tree Generated by LLM

{
  "children": [
    {
      "children": [
        {
          "children": [],
          "goal": "Identify how to accumulate values incrementally"
        }
      ],
      "goal": "Determine the cumulative addition process"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Check that the sum matches the expected total by cross-verifying with alternative methods"
        }
      ],
      "goal": "Validate the computed sum"
    }
  ],
  "goal": "Compute the total sum of the array elements"
}
    

Generated Goals

Mixed goals generated by the LLM (correct + distractors).

  • Identify how to accumulate values incrementally
  • Compute the average of the array elements
  • Determine the cumulative addition process
  • Check that the sum matches the expected total by cross-verifying with alternative methods
  • Determine the maximum value in the array
  • Validate the computed sum
  • Sort the array in ascending order