Présentation du problème

Remove Duplicates


Remove duplicate elements from a list.

medium
Generate Goal Tree Build Plan

Goal Tree Generated by LLM

{
  "children": [
    {
      "children": [
        {
          "children": [],
          "goal": "Determine which elements appear more than once"
        }
      ],
      "goal": "Identify duplicate occurrences"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Preserve original order of first occurrences"
        }
      ],
      "goal": "Construct a deduplicated list"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Ensure no element appears more than once"
        }
      ],
      "goal": "Validate deduplication"
    }
  ],
  "goal": "Remove duplicate elements from a list"
}
    

Generated Goals

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

  • Identify duplicate occurrences
  • Ensure no element appears more than once
  • Examine the trade-offs between immutable and mutable sequences in functional programming.
  • Determine which elements appear more than once
  • Construct a deduplicated list
  • Preserve original order of first occurrences
  • Determine the best data structure for storing large collections of items.
  • Analyze how list indexing affects algorithmic efficiency.
  • Validate deduplication