Repository navigation
Statement audit 2026-11: restate unclear problems (#301) - #335
Merged
Merged
Conversation
New Slug longest-rising-quiz-scores, retitled "Longest Rising Quiz Scores". "Streak" read as consecutive quizzes; the task is a subsequence that may skip quizzes. Starter method longestBrightRun -> longestRisingScores, in all 4 Starter Codes and Drivers. Sample 3 becomes Example 3. Java, JavaScript and C++ reference solutions added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Streak" hid that the task is the largest product, and the foot-traffic story made multiplying counts meaningless. Starter method bestFlowStreak (max_product in Python) -> maxProduct, parameter traffic -> nums, in all 4 Starter Codes and Drivers. Fixes the Korean Example 2 that said the opposite of what it meant. Java, JavaScript and C++ reference solutions added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Top" read as the maximum; the task is the k-th highest. Starter method findBrightestTargets -> kthHighestScore, in all 4 Starter Codes and Drivers. Java, JavaScript and C++ reference solutions added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
State the task first (a deep copy of the map containing node), say the adjacency list is only how the examples write a map, and show the empty map as Example 3. Starter method snapshotMeshLayout -> cloneMap in all 4 Starter Codes and Drivers; reference solutions in all 4 languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One theme and one name per thing: the array is lockers (was shelf) and the number target (the text said query) in text, constraints and Starter Code. Starter method locateCallNumber -> findLocker in all 4 Starter Codes and Drivers; reference solutions in all 4 languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
State the merge first, explain the examples without the friends they never introduced, and say run times (기록) in Korean too, not lap times. Starter method combineOvenRotations -> mergeRuns in all 4 Starter Codes and Drivers; reference solutions in all 4 languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New Slug longest-window-with-at-most-k-genres, retitled "Longest Window With At Most K Genres": "Unique" suggested all-distinct tags, but the task allows up to k distinct genres. Starter method countUniqueTopics (k_distinct_window in Python) -> longestKGenreWindow, in all 4 Starter Codes and Drivers. Sample 3 becomes Example 3. The Walkthrough and its tracer move to the new Slug and are regenerated. Java, JavaScript and C++ reference solutions added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New Slug longest-two-flavor-stretch, retitled "Longest Two-Flavor Stretch": "Unique" suggested all-distinct treats, but the task allows at most two flavors. Starter method longestCleanRun (fruit_picker in Python) -> longestTwoFlavorStretch, in all 4 Starter Codes and Drivers. The constraint 0 <= treats[i] < treats.length, false for several cases, is loosened to 0 <= treats[i] <= 10^5. Java, JavaScript and C++ reference solutions added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The text named detectTransferLoop(head, pos) while the function takes only head; pos is now explained only as how an example builds the loop. The constraint names ListNode.val, the Starter Code's class. Starter method detectTransferLoop -> hasPortalLoop in all 4 Starter Codes and Drivers; reference solutions in all 4 languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
State the task first and name the task count numTasks (was numScenes, a film-shoot leftover) in text, constraints and Starter Code. Starter method verifyShootPlan -> canFinishAllTasks in all 4 Starter Codes and Drivers, whose locals now read numTasks and prereqs; reference solutions in all 4 languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New Slug: skin-resale-with-cooldown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New Slug: match-dot-star-pattern. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New Slug: combine-bags-to-match-target. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New Slug: non-decreasing-with-one-change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…305) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Starter method splitHeadlineTokens -> canSplitMessage, parameters headline -> message and topics -> words; Example 3 explained step by step; Korean title matches the English one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A 0 no longer reads as a pit you can't land on. Starter method canFinishLine -> canFinishLevel, parameter slack -> jumps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Starter method findUnpairedFrame -> findLonelyCandy, parameter frames -> candies; Walkthrough regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Starter method advanceShotOrder -> nextLineup, parameter shotOrder -> lineup; lexicographic order defined and Example 1 lists the arrangements; repeated ids stated. Walkthrough regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Starter method foldBaleOps -> evalPostfix, parameter baleTape -> tokens; operand order of - and / stated; 32-bit intermediate bound stated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Java Starter Code shows Node only in a comment and the Driver never defined it, so every Java submission failed to compile. The Driver now declares Node as the C++ Driver does. Adds the Java reference solution that found it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Retitled "Majority Vote": "Boss" was never explained and "Return that id" named ids the statement never introduced. Starter method majorityHeadline -> majorityVote in all 4 Starter Codes and Drivers; the Walkthrough moves with the Slug. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The statement now opens with the task. Starter method orderTankDeviations (tanks, from an earlier theme) -> sortedSquaredDrifts in all 4 Starter Codes and Drivers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops the power-ups theme and says "chunk" as the title does. Starter method flipSorterSegments (reverse_k_group in Python) -> flipChunks in all 4 Starter Codes and Drivers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The statement now opens with the task and each example names the path maximum a hero is compared with. Starter method tallyDominantBlocks (blocks, from an earlier theme) -> countDominantHeroes in all 4 Starter Codes and Drivers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops the pet-shop opening, starts with the task and says what a subtree's height counts. Starter method checkHubEvenness -> isBalanced in all 4 Starter Codes and Drivers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops the yearbook-photo opening, starts with the task, and makes the empty-tree sample Example 3. Starter method alternateWardSweep (wards, from an earlier theme) -> zigzagRows in all 4 Starter Codes and Drivers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The method was coverAllWindows in Java, JavaScript and C++ and find_min_arrows in Python, names left over from earlier themes; the statement drops pellets on zones, so all four Starter Codes and Drivers now call minPellets(zones). The statement names no method, so its text and the Test Cases stay. Reference solutions in all four languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The title's episode number never appeared in the statement, which read an integer `code` and called the method isReversibleCode. The statement now reads it as an episode number, and all four Starter Codes and Drivers call isPalindrome(episode). Title, Slug and Test Cases stay. Reference solutions in all four languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The description named the method reversePrinterFlags, a printer left over from an earlier theme, and asked for "a `long`", which only Java has. It now states the task first, names no method and says the result is an unsigned 32-bit value; sample case 3 becomes Example 3, a result past the signed 32-bit range. All four Starter Codes and Drivers call reverseFlags(statusWord). Title, Slug and Test Cases stay. Reference solutions in all four languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Commit 420a642 renamed the method get to readAt across the problem's files and also rewrote the Java Driver's ops.get(idx) and argsList.get(idx), which are List calls: List has no readAt, so every Java submission has failed to compile since. Both calls are get again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The statement and three Starter Codes name readAt's second parameter snapId; the Python Starter Code called it snap_id, and now says snapId too. The Drivers' instance, snapArr, is cells, as in the statement's call trace. The statement and Test Cases stay. Reference solutions in all four languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tracers set sys.dont_write_bytecode, so the tracked .pyc files were stale leftovers that nothing reads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Five problems the audit touched named the Python method (and, for order-group-tasks, a parameter) in snake_case while Java, JavaScript and C++ use camelCase. Rename the Python Starter Code, the Python Driver's call and locals, and the reference solution to the other three's names: - count-cipher-decodings: count_decodings -> countDecodings - count-doodle-palindromes: count_palindromic_substrings -> countPalindromicSubstrings - desk-notes-overlap: longest_common_subsequence -> longestCommonSubsequence - order-group-tasks: find_task_order -> findTaskOrder, num_tasks -> numTasks - rotting-donuts: minutes_until_stale -> minutesUntilStale (also in the Walkthrough tracer's docstring; its output is unchanged) No statement names a Python method, so no migration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fold the durable lessons from spec #301's tickets into the skill: check every bound against every case and the return type, judge all 4 reference solutions on the unchanged problem before renaming, grep all 4 Starter Codes for the method, the reference solution conventions per Language (C++14 above all), skills in the rename grep, Java migrations, whole-word perl renames, port and Flyway pitfalls of branch servers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kyu-seok
marked this pull request as ready for review
November 14, 2026 21:41
…6-11 # Conflicts: # .claude/skills/restate-problem/SKILL.md
This was referenced Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements spec #301 (statement audit 2026-11): restates the unclear problems ticket by ticket, one Restatement commit per problem, each ticket merged with
--no-ff. #302 (the tracer) shipped separately as #334.Closes #301
Closes #303
Closes #304
Closes #305
Closes #306
Closes #307
Closes #308
Closes #309
Closes #310
Closes #311
Closes #312
Closes #313
Closes #314
Closes #315
Closes #316
Closes #317
Closes #318
Closes #319
Closes #320
Closes #321
Closes #322
Closes #323
Closes #324
Closes #325
Closes #326
Closes #327
Closes #328
What users will notice
scripts/prod-text.shis denied to agents): any statement edited through the admin page in production is overwritten by these migrations. Please runscripts/prod-text.sh <old-slug>for the problems below before merging.Per ticket
Beyond the tickets
fix(problem)commits):clone-quest-lognever definedNode;snack-stock-map,timestamp-value-storeandversioned-cellscalled renamed methods on JavaLists since 420a642 (April). Every Java submission to these four failed to compile in production until this merges.intreturn type were corrected (loosened to fit a fair case, or tightened where every case stays far inside). No Test Case changed.right-side-skill-view,flatten-agenda-tree): each duplicated another, and its sample case can't change in a Restatement; the sample still runs.scripts/walkthroughs/__pycache__untracked and ignored; the restate-problem skill gained the audit's lessons (bounds vs return type, judge all 4 languages before renaming, C++14 references).judge-local.shcovers all 4 languages.Checks
Each ticket:
judge-local.shACCEPTED in all 4 languages on every case, the Run endpoint on every sample, the Former Slug redirect through the API,com.codebite.problem.*and the Driver/Starter Code tests. Each merge: the full backend, worker and frontend checks viascripts/merge-ticket.sh.🤖 Generated with Claude Code