utils/leetcode_coach/leetcode_coach/clusters.json
Krzysztof kuhy Rudnicki e06df74caf Coach tab: no sessions yet is a known state with how to start
The exporter used to publish coach: null before the first session, so the
tab printed "unknown" everywhere with no way forward. Now a missing or empty
sessions dir exports empty problems/re-tests, every cluster at zero with its
problems (slug, number, title, URL) and next, and a how_to block (commands,
the 4-step method, first command). null stays for a real failure.

how_to lives once in leetcode_coach/how_to.py; DOCS-how-to.md quotes it and a
test fails on drift. The app's Coach tab shows a How to start card (monospace
command box with copy), one card per cluster with tappable problems, re-tests
with their command, and "unknown" + why only for a null section. Also fixes
the done/solved key mismatch (the app read a key no exporter wrote).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PjvF5DZG9JduSBYKxqyysi
2026-10-23 19:24:20 +02:00

41 lines
2.3 KiB
JSON

{
"clusters": {
"bit-cancellation": [
{"id": 268, "slug": "missing-number", "title": "Missing Number"},
{"id": 260, "slug": "single-number-iii", "title": "Single Number III"},
{"id": 169, "slug": "majority-element", "title": "Majority Element"},
{"id": 137, "slug": "single-number-ii", "title": "Single Number II"}
],
"two-pointers": [
{"id": 167, "slug": "two-sum-ii-input-array-is-sorted", "title": "Two Sum II - Input Array Is Sorted"},
{"id": 15, "slug": "3sum", "title": "3Sum"},
{"id": 11, "slug": "container-with-most-water", "title": "Container With Most Water"},
{"id": 42, "slug": "trapping-rain-water", "title": "Trapping Rain Water"}
],
"sliding-window": [
{"id": 3, "slug": "longest-substring-without-repeating-characters", "title": "Longest Substring Without Repeating Characters"},
{"id": 424, "slug": "longest-repeating-character-replacement", "title": "Longest Repeating Character Replacement"},
{"id": 567, "slug": "permutation-in-string", "title": "Permutation in String"},
{"id": 76, "slug": "minimum-window-substring", "title": "Minimum Window Substring"}
],
"prefix-sum-hash": [
{"id": 560, "slug": "subarray-sum-equals-k", "title": "Subarray Sum Equals K"},
{"id": 523, "slug": "continuous-subarray-sum", "title": "Continuous Subarray Sum"},
{"id": 974, "slug": "subarray-sums-divisible-by-k", "title": "Subarray Sums Divisible by K"},
{"id": 525, "slug": "contiguous-array", "title": "Contiguous Array"}
],
"monotonic-stack": [
{"id": 739, "slug": "daily-temperatures", "title": "Daily Temperatures"},
{"id": 496, "slug": "next-greater-element-i", "title": "Next Greater Element I"},
{"id": 503, "slug": "next-greater-element-ii", "title": "Next Greater Element II"},
{"id": 84, "slug": "largest-rectangle-in-histogram", "title": "Largest Rectangle in Histogram"}
],
"intervals": [
{"id": 56, "slug": "merge-intervals", "title": "Merge Intervals"},
{"id": 57, "slug": "insert-interval", "title": "Insert Interval"},
{"id": 435, "slug": "non-overlapping-intervals", "title": "Non-overlapping Intervals"},
{"id": 452, "slug": "minimum-number-of-arrows-to-burst-balloons", "title": "Minimum Number of Arrows to Burst Balloons"}
]
}
}