SPB Git
451 B · 7 lines json
1{2  "id": "programming",3  "category": "Programming",4  "grader": "code",5  "max_tokens": 6000,6  "prompt": "Write a JavaScript (ES2020, no dependencies) function `topKFrequent(words, k)` that returns the k most frequent strings in the array `words`, sorted by decreasing frequency, ties broken alphabetically. Return the code in a single ```javascript fenced block, exporting nothing (plain function declaration). No explanation outside the block."7}
Files · main
Menu

Theme