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