Count the number of occurrences of a character in a string.
easy
{
"children": [
{
"children": [
{
"children": [],
"goal": "Confirm the character to be counted"
}
],
"goal": "Understand the target character"
},
{
"children": [
{
"children": [],
"goal": "Determine the string length and composition"
}
],
"goal": "Examine the string content"
},
{
"children": [
{
"children": [],
"goal": "Specify how to identify matches and tally them"
}
],
"goal": "Develop a counting plan"
}
],
"goal": "Count the number of occurrences of a specified character in a string"
}
Mixed goals generated by the LLM (correct + distractors).