Write an algorithm that returns the largest element in a list of integers.
easy
{
"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"
}
Mixed goals generated by the LLM (correct + distractors).