Count the number of occurrences of a character in a string.
easy
{
"children": [
{
"children": [
{
"children": [],
"goal": "Identify the target character"
},
{
"children": [],
"goal": "Understand the string\u0027s composition"
}
],
"goal": "Analyze the string and the target character"
},
{
"children": [
{
"children": [],
"goal": "Traverse the string and tally matches"
},
{
"children": [],
"goal": "Summarize the final count"
}
],
"goal": "Compute the occurrence count"
}
],
"goal": "Determine the total count of a specified character in the given string"
}
Mixed goals generated by the LLM (correct + distractors).