Présentation du problème

Merge Arrays


Merge two sorted arrays into one sorted array.

medium
Generate Goal Tree Build Plan

Goal Tree Generated by LLM

{
  "children": [
    {
      "children": [
        {
          "children": [],
          "goal": "Identify the relative order of elements"
        }
      ],
      "goal": "Determine the merging strategy"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Compare elements from both arrays"
        },
        {
          "children": [],
          "goal": "Build the resulting array"
        }
      ],
      "goal": "Execute the merging process"
    }
  ],
  "goal": "Merge two sorted arrays into a single sorted array"
}
    

Generated Goals

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

  • Compare elements from both arrays
  • Build the resulting array
  • Execute the merging process
  • Explore the role of data structures in combining sequences
  • Evaluate how array size influences algorithmic performance
  • Determine the merging strategy
  • Identify the relative order of elements
  • Understand the concept of sortedness in arrays