Présentation du problème

Palindrome


Check whether a word is a palindrome.

medium
Generate Goal Tree Build Plan

Goal Tree Generated by LLM

{
  "children": [
    {
      "children": [
        {
          "children": [],
          "goal": "Check word length"
        }
      ],
      "goal": "Analyze word characteristics"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Iterate over half the word"
        }
      ],
      "goal": "Compare mirrored characters"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Confirm all mirrored pairs match"
        }
      ],
      "goal": "Validate palindrome status"
    }
  ],
  "goal": "Determine if a word is a palindrome"
}
    

Generated Goals

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

  • Check word length
  • Validate palindrome status
  • Analyze word characteristics
  • Compare mirrored characters
  • Confirm all mirrored pairs match
  • Determine the length of the word
  • Count the number of vowels
  • Convert the word to uppercase
  • Iterate over half the word