Présentation du problème

Maximum in a List


Write an algorithm that returns the largest element in a list of integers.

easy
Generate Goal Tree Build Plan

Goal Tree Generated by LLM

{
  "children": [
    {
      "children": [
        {
          "children": [],
          "goal": "Identify list size and element range"
        }
      ],
      "goal": "Analyze the list characteristics"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Define a rule for selecting larger values"
        }
      ],
      "goal": "Formulate a comparison strategy"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Ensure no larger element exists"
        }
      ],
      "goal": "Confirm the identified maximum"
    }
  ],
  "goal": "Determine the maximum integer in the list"
}
    

Generated Goals

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

  • Identify list size and element range
  • Verify that the list contains only integers
  • Determine the average value of the list
  • Analyze the list characteristics
  • Formulate a comparison strategy
  • Confirm the identified maximum
  • Identify the smallest element in the list
  • Ensure no larger element exists
  • Define a rule for selecting larger values