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": "Compare elements sequentially"
        }
      ],
      "goal": "Identify the maximum candidate"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Validate no larger element exists"
        }
      ],
      "goal": "Confirm the maximum"
    }
  ],
  "goal": "Find the largest element in a list of integers"
}
    

Generated Goals

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

  • Compare elements sequentially
  • Calculate the sum of all elements in the list
  • Confirm the maximum
  • Determine the median value of the list
  • Validate no larger element exists
  • Identify the maximum candidate
  • Identify the smallest element in the list