Spaces:
Configuration error
Configuration error
File size: 4,170 Bytes
e9f335d 0f1ef35 e9f335d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | {
"1": {
"lang": "Python",
"tier": "Junior",
"task": "Resolve relative import failure in package structure.",
"template_dir": "level_1",
"ans": "from . import core",
"hint": "The main.py is inside the package; it needs a relative import dot."
},
"2": {
"lang": "JavaScript",
"tier": "Junior",
"task": "Fix the ES Module vs CommonJS export mismatch.",
"template_dir": "level_2",
"ans": "import { log }",
"hint": "You cannot 'require' a file that uses 'export const'."
},
"3": {
"lang": "Python",
"tier": "Junior",
"task": "Fix the mutable default argument logic error.",
"template_dir": "level_3",
"ans": "box=None",
"hint": "Default lists are instantiated once at definition time, not call time."
},
"4": {
"lang": "C++",
"tier": "Junior",
"task": "Add missing header guards to prevent redefinition.",
"template_dir": "level_4",
"ans": "#pragma once",
"hint": "The compiler sees the same function twice because the header isn't guarded."
},
"5": {
"lang": "Java",
"tier": "Junior",
"task": "Fix Access Modifier blocking external test visibility.",
"template_dir": "level_5",
"ans": "public boolean",
"hint": "Tests in a different package cannot access 'private' methods."
},
"6": {
"lang": "Python/Django",
"tier": "Senior",
"task": "Optimize the N+1 Query bottleneck in the ORM.",
"template_dir": "level_6",
"ans": "select_related('author')",
"hint": "Use a join to fetch authors in the same query as the posts."
},
"7": {
"lang": "Rust",
"tier": "Senior",
"task": "Resolve Thread-Safety/Ownership conflict for shared state.",
"template_dir": "level_7",
"ans": "Arc<Mutex<",
"hint": "Wrap the mutable integer in an Atomic Reference Counter and a Mutex."
},
"8": {
"lang": "JavaScript",
"tier": "Senior",
"task": "Fix memory leak caused by dangling IntersectionObservers.",
"template_dir": "level_8",
"ans": "obs.disconnect()",
"hint": "Observers must be manually torn down when the component unmounts."
},
"9": {
"lang": "Go",
"tier": "Senior",
"task": "Fix unbuffered channel deadlock in the main routine.",
"template_dir": "level_9",
"ans": "make(chan int, 1)",
"hint": "The sender is blocking before the receiver can start."
},
"10": {
"lang": "Python/FastAPI",
"tier": "Senior",
"task": "Prevent global state pollution in async requests.",
"template_dir": "level_10",
"ans": "ContextVar",
"hint": "Global variables are shared across async threads; use context-local vars."
},
"11": {
"lang": "System/Search",
"tier": "Architect",
"task": "The repo is too large. Spawn sub-agents to map Auth logic.",
"template_dir": "level_11",
"ans": "spawn_sub_agent",
"hint": "Use a specialized sub-agent to grep through the 100+ virtual files."
},
"12": {
"lang": "System/MCP",
"tier": "Architect",
"task": "Use Weather MCP to gate the automated deployment.",
"template_dir": "level_12",
"ans": "mcp.call_tool('weather_v1'",
"hint": "Check the weather tool in metadata; abort if storm_risk > 80%."
},
"13": {
"lang": "System/Web",
"tier": "Architect",
"task": "Search for breaking changes in OpenAI v1.0 migration.",
"template_dir": "level_13",
"ans": "web_search",
"hint": "The library syntax changed. Search the web for the new client init."
},
"14": {
"lang": "System/Conflict",
"tier": "Architect",
"task": "Resolve a multi-file merge conflict in auth.py.",
"template_dir": "level_14",
"ans": "accept_incoming",
"hint": "Manually clean the git conflict markers (<<<<, ====, >>>>)."
},
"15": {
"lang": "System/Final",
"tier": "Architect",
"task": "Final Boss: Deploy Full-Stack via Orchestration.",
"template_dir": "level_15",
"ans": "orchestrate_full_stack",
"hint": "Spawn agents for DB, API, and UI. Deploy all layers via MCP."
}
} |