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": "Determine array length"
        },
        {
          "children": [],
          "goal": "Identify element types"
        }
      ],
      "goal": "Understand the array structure"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Process each element sequentially and add to running total"
        }
      ],
      "goal": "Develop summation strategy"
    }
  ],
  "goal": "Calculate the sum of all elements in an array of integers"
}
    

Generated Goals

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

  • Determine array length
  • Determine if the array contains any duplicate values
  • Identify element types
  • Understand the array structure
  • Develop summation strategy
  • Process each element sequentially and add to running total
  • Calculate the average of the array elements
  • Identify the largest element in the array