Glean logoGlean
CodingMembers

Token Budget Allocator for LLM Context Window

Members only

A retrieval-augmented prompt has to fit a fixed context window, so documents must be selected and sometimes trimmed to maximize relevance. The question starts with a selection problem and then adds a twist on how partial documents are scored, which is where careful reasoning about optimality matters.

SWE
dp
array
hard
llm
Frequency
Single report
Last asked
—
Stage
onsite-coding

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 6 talking points
  • 5 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...