Présentation du problème

Array Average


Calculate the average of the elements in an array.

easy
Generate Goal Tree Build Plan

Goal Tree Generated by LLM

{
  "children": [
    {
      "children": [
        {
          "children": [],
          "goal": "Identify each element\u0027s value"
        }
      ],
      "goal": "Determine the sum of all elements"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Identify the array length"
        }
      ],
      "goal": "Count the number of elements"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Divide the sum by the count"
        }
      ],
      "goal": "Compute the average"
    }
  ],
  "goal": "Calculate the average of the elements in an array"
}
    

Generated Goals

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

  • Find the maximum element
  • Determine if the array is sorted
  • Compute the product of all elements
  • Count the number of elements
  • Compute the average
  • Determine the sum of all elements
  • Divide the sum by the count
  • Identify the array length
  • Identify each element's value