acceptance_tests stringlengths 3.5k 39.4k | category stringclasses 12
values | entrypoint stringclasses 1
value | family stringlengths 7 20 | language stringclasses 1
value | num_assertions int64 46 241 | num_scenarios int64 5 20 | prompt stringlengths 2.2k 8.38k | protocol_version stringclasses 1
value | public_tests stringlengths 178 400 | subset stringclasses 4
values | target_model_parameters stringclasses 4
values | task_id stringlengths 19 41 | timeout_seconds int64 10 10 | title stringlengths 21 44 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"count":1,"word":"9"},{"count":1,"word":"b"},{"count":1,"word":"b00a9ab"},{"count":1,"word":"ba"}]},{"ok":true,"result":[{"count":1,"word":"0"}]},{"ok":true,"result":[{"count":1,"word":"00"}]},{"ok":true,"result":[{"count":2,"word":"a9"},{"count... | text | main.py | word_frequency | python | 47 | 5 | # Word Frequency — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
R... | 1.0 | [{"request":{"input":{"text":"Red blue RED! 42"},"op":"solve"},"response":{"ok":true,"result":[{"count":2,"word":"red"},{"count":1,"word":"42"},{"count":1,"word":"blue"}]}},{"request":{"input":{"text":""},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-001-word-frequency | 10 | Word Frequency — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":["b-ba-b-a-b-a-bbaa","a-b-a-b-aa-aa-a-a-a-a-b-a","a-b-b-aaabb-b-a-a-a-a","b-a-a-a","a-ba-abaa-ab-b-aa-a-b-b-aa-ab-aa-b","a-a-a-aa-a","ab","a-a-a-a-a-a-a-a-ab-ab","bb-bb-a-ab-aa","a-a-a-b-b-aba-a-a-b-b-bbabaab-ba","aa-a-a-aa-a-a-a-a-a"]},{"ok":true... | text | main.py | slug_registry | python | 47 | 5 | # Slug Registry — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Re... | 1.0 | [{"request":{"input":{"titles":["Hello World","hello world","hello-world-2",""]},"op":"solve"},"response":{"ok":true,"result":["hello-world","hello-world-2","hello-world-2-2","item"]}},{"request":{"input":{"titles":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-002-slug-registry | 10 | Slug Registry — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[["0",1],[" ",1],["9",1],["_",1],["A",1],["0",1],["a",1],["é",1],[" ",1],["b",1],["0",1],[" ",2],["_",1],["-",1],["0",1],["a",2],["B",1],["0",1],["b",1],[" ",1]]},{"ok":true,"result":[["B",1],["_",1],["B",1],["a",1],["é",1],["0",1],[" ",1],["\n",1... | text | main.py | run_length | python | 47 | 5 | # Run Length — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read ... | 1.0 | [{"request":{"input":{"text":"aaabbcaa"},"op":"solve"},"response":{"ok":true,"result":[["a",3],["b",2],["c",1],["a",2]]}},{"request":{"input":{"text":""},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-003-run-length | 10 | Run Length — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"balanced":false,"position":1}},{"ok":true,"result":{"balanced":false,"position":3}},{"ok":true,"result":{"balanced":false,"position":3}},{"ok":true,"result":{"balanced":false,"position":8}},{"ok":true,"result":{"balanced":false,"position":2}},{"... | text | main.py | bracket_audit | python | 48 | 5 | # Bracket Audit — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Re... | 1.0 | [{"request":{"input":{"text":"a([)]"},"op":"solve"},"response":{"ok":true,"result":{"balanced":false,"position":3}}},{"request":{"input":{"text":""},"op":"solve"},"response":{"ok":true,"result":{"balanced":true,"position":null}}}] | easy | 2–8B | kcb-easy-004-bracket-audit | 10 | Bracket Audit — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":["Aa","_a-9bA-","BBé","0_ab"]},{"ok":true,"result":["9 0a","-9é-0Aéé9aéb","_é B0","b0aéaB0AB","00-","b-0_A9ABA99"]},{"ok":true,"result":["AbbABébb99"]},{"ok":true,"result":["--A _abé-b"]},{"ok":true,"result":["0aAB0B_a9 éa","Ba0_ A 9b9--","9Bé0bAb... | text | main.py | text_wrap | python | 48 | 5 | # Text Wrap — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read o... | 1.0 | [{"request":{"input":{"text":"one two three four","width":7},"op":"solve"},"response":{"ok":true,"result":["one two","three","four"]}},{"request":{"input":{"text":"","width":1},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-005-text-wrap | 10 | Text Wrap — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"positions":[0],"tokens":["c","a","é","a/b"]}]},{"ok":true,"result":[{"positions":[2],"tokens":["","a","b","a"]},{"positions":[3],"tokens":["a","b","a","b"]},{"positions":[4],"tokens":["b","a","b","é"]},{"positions":[1],"tokens":["c","","a","b"]... | text | main.py | ngram_index | python | 48 | 5 | # Ngram Index — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"n":2,"tokens":["a","b","a","b"]},"op":"solve"},"response":{"ok":true,"result":[{"positions":[0,2],"tokens":["a","b"]},{"positions":[1],"tokens":["b","a"]}]}},{"request":{"input":{"n":1,"tokens":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-006-ngram-index | 10 | Ngram Index — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":["c"]},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":["a","b","c"]},{"ok":true,"result":["é"]},{"ok":true,"result":["a","b","c"]},{"ok":true,"result":["é"]},{"ok":true,"result":["c"]},{"ok":true,"result":["a","c","é"]},{"ok":... | text | main.py | glob_filter | python | 48 | 5 | # Glob Filter — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"paths":["a.py","B.py","a.txt","a.py","x/a.py"],"pattern":"*.py"},"op":"solve"},"response":{"ok":true,"result":["B.py","a.py","x/a.py"]}},{"request":{"input":{"paths":[],"pattern":"*"},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-007-glob-filter | 10 | Glob Filter — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":27},{"ok":true,"result":19},{"ok":true,"result":39},{"ok":true,"result":13},{"ok":true,"result":41},{"ok":true,"result":44},{"ok":true,"result":48},{"ok":true,"result":24},{"ok":true,"result":24},{"ok":true,"result":28},{"ok":true,"result":22},{"o... | text | main.py | edit_distance | python | 48 | 5 | # Edit Distance — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Re... | 1.0 | [{"request":{"input":{"a":"kitten","b":"sitting"},"op":"solve"},"response":{"ok":true,"result":3}},{"request":{"input":{"a":"","b":""},"op":"solve"},"response":{"ok":true,"result":0}}] | easy | 2–8B | kcb-easy-008-edit-distance | 10 | Edit Distance — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":"CXCVIII"},{"ok":true,"result":"MMMCCCXCVII"},{"ok":true,"result":"MDCCLXI"},{"ok":true,"result":"MDLII"},{"ok":true,"result":"MCXIX"},{"ok":true,"result":"MMCDXXIV"},{"ok":true,"result":"MMCMLXXIX"},{"ok":true,"result":"MCCV"},{"ok":true,"result"... | text | main.py | roman_codec | python | 48 | 5 | # Roman Codec — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"number":1994},"op":"solve"},"response":{"ok":true,"result":"MCMXCIV"}},{"request":{"input":{"number":1},"op":"solve"},"response":{"ok":true,"result":"I"}}] | easy | 2–8B | kcb-easy-009-roman-codec | 10 | Roman Codec — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":"c0C\n\n_99\nD_ D\nd\n 9CD"},{"ok":true,"result":"0yxy éé y_Xxy- 9\nXYX 009 9é_9é_ --\n--0XX_0xy9Xéé"},{"ok":true,"result":"II-_j0iéI-i9é éji0iJ jjIé 9 ii\nIijII9-Iii 9J"},{"ok":true,"result":""},{"ok":true,"result":"0k\n"},{"ok":true,"result":"... | text | main.py | caesar_cipher | python | 48 | 5 | # Caesar Cipher — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Re... | 1.0 | [{"request":{"input":{"shift":1,"text":"Az-z! 9"},"op":"solve"},"response":{"ok":true,"result":"Ba-a! 9"}},{"request":{"input":{"shift":0,"text":""},"op":"solve"},"response":{"ok":true,"result":""}}] | easy | 2–8B | kcb-easy-010-caesar-cipher | 10 | Caesar Cipher — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"a":"\na\n,bbé\néé,é, ba\n,\"é,b\n b\"\"bé\"a,\",b, ,é éb a\" \n","b":"00éa 0é\nA9é_aB A99_Bbb_B--9 __-Ba9_-aé__BaB9bAAa\n0BBAbé"},{"a":",ba\"a\"a,","b":"Béé baa9éB9 -9A--A"},{"a":"a\n ","b":"00Aéé-a-_\n-A-"},{"a":" \n, b ,é,b\né,\"\n é\né... | data | main.py | csv_records | python | 47 | 5 | # Csv Records — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"csv":"name,n\na,1\nb,2\n"},"op":"solve"},"response":{"ok":true,"result":[{"n":"1","name":"a"},{"n":"2","name":"b"}]}},{"request":{"input":{"csv":""},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-011-csv-records | 10 | Csv Records — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"b":null,"c":null},{"b":1,"c":null},{"b":null,"c":null}]},{"ok":true,"result":[{"b":"x","c":null}]},{"ok":true,"result":[{"b":null,"c":null},{"b":null,"c":null}]},{"ok":true,"result":[{"b":2,"c":null},{"b":null,"c":null},{"b":null,"c":null},{"b"... | data | main.py | record_query | python | 48 | 5 | # Record Query — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Rea... | 1.0 | [{"request":{"input":{"rows":[{"a":1,"b":"x"},{"a":2},{"a":1}],"select":["b"],"where":{"a":1}},"op":"solve"},"response":{"ok":true,"result":[{"b":"x"},{"b":null}]}},{"request":{"input":{"rows":[],"select":[],"where":{}},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-012-record-query | 10 | Record Query — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"left":{"k":0},"right":{"k":0}},{"left":{"k":0},"right":{"k":0}}]},{"ok":true,"result":[{"left":{"k":3},"right":{"k":3}}]},{"ok":true,"result":[{"left":{"k":0},"right":{"k":0}}]},{"ok":true,"result":[{"left":{"k":2},"right":{"k":2}},{"left":{"k"... | data | main.py | inner_join | python | 48 | 5 | # Inner Join — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read ... | 1.0 | [{"request":{"input":{"key":"id","left":[{"id":1},{"id":2}],"right":[{"id":2},{"id":2,"x":3}]},"op":"solve"},"response":{"ok":true,"result":[{"left":{"id":2},"right":{"id":2}},{"left":{"id":2},"right":{"id":2,"x":3}}]}},{"request":{"input":{"key":"k","left":[],"right":[]},"op":"solve"},"response":{"ok":true,"result":[]... | easy | 2–8B | kcb-easy-013-inner-join | 10 | Inner Join — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"count":6,"key":"","sum":-33},{"count":6,"key":"a","sum":-8},{"count":3,"key":"b","sum":21}]},{"ok":true,"result":[{"count":2,"key":"","sum":11},{"count":3,"key":"a","sum":-8},{"count":7,"key":"b","sum":19}]},{"ok":true,"result":[{"count":2,"key... | data | main.py | group_totals | python | 47 | 5 | # Group Totals — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Rea... | 1.0 | [{"request":{"input":{"group":"g","rows":[{"g":"b","v":2},{"g":"a","v":3},{"g":"b","v":-1}],"value":"v"},"op":"solve"},"response":{"ok":true,"result":[{"count":1,"key":"a","sum":3},{"count":2,"key":"b","sum":1}]}},{"request":{"input":{"group":"g","rows":[],"value":"v"},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-014-group-totals | 10 | Group Totals — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"/a~1b/0/0":-8,"/a~1b/0/1":2,"/a~1b/0/2":-2,"/a~1b/0/3":8,"/a~1b/0/4":3,"/a~1b/0/5":7,"/a~1b/0/6":4,"/a~1b/0/7":9,"/a~1b/1":{},"/a~1b/2":null,"/x":null,"/~0/":3}},{"ok":true,"result":{"/a~1b/0":[],"/a~1b/1":{},"/a~1b/2":null,"/x":null,"/~0/":4}},... | data | main.py | json_flatten | python | 46 | 5 | # Json Flatten — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Rea... | 1.0 | [{"request":{"input":{"value":{"a":[1,{"x/y":null}],"b":{}}},"op":"solve"},"response":{"ok":true,"result":{"/a/0":1,"/a/1/x~1y":null,"/b":{}}}},{"request":{"input":{"value":[]},"op":"solve"},"response":{"ok":true,"result":{"":[]}}}] | easy | 2–8B | kcb-easy-015-json-flatten | 10 | Json Flatten — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"x":{"v":7},"~":{"":2}}},{"ok":true,"result":{"a/b":[1],"x":{"v":3},"~":{"":4}}},{"ok":true,"result":{"a/b":{"z":2},"x":{"v":5},"~":{"":5}}},{"ok":true,"result":{"a/b":{"z":2},"x":{"v":8},"~":{"":0}}},{"ok":true,"result":{"a/b":{"z":2},"x":{"v":6... | data | main.py | merge_patch | python | 48 | 5 | # Merge Patch — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"patch":{"a":null,"b":{"c":9}},"target":{"a":1,"b":{"c":2,"d":3}}},"op":"solve"},"response":{"ok":true,"result":{"b":{"c":9,"d":3}}}},{"request":{"input":{"patch":null,"target":{}},"op":"solve"},"response":{"ok":true,"result":null}}] | easy | 2–8B | kcb-easy-016-merge-patch | 10 | Merge Patch — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"found":false,"value":null}},{"ok":true,"result":{"found":true,"value":{"a/b":[[-8,-2,8,7,2,3,6,-9],{},null],"x":null,"~":{"":7}}}},{"ok":true,"result":{"found":true,"value":6}},{"ok":true,"result":{"found":true,"value":6}},{"ok":true,"result":{"... | data | main.py | json_pointer | python | 49 | 5 | # Json Pointer — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Rea... | 1.0 | [{"request":{"input":{"pointer":"/a~1b/0","value":{"a/b":[7]}},"op":"solve"},"response":{"ok":true,"result":{"found":true,"value":7}}},{"request":{"input":{"pointer":"","value":null},"op":"solve"},"response":{"ok":true,"result":{"found":true,"value":null}}}] | easy | 2–8B | kcb-easy-017-json-pointer | 10 | Json Pointer — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"a":2,"b":2},{"a":2,"b":"x"},{"a":1},{"a":"x"}]},{"ok":true,"result":[{"a":2,"b":null},{}]},{"ok":true,"result":[{"a":2,"b":2},{"a":null,"b":2},{"a":"x","b":"x"},{"a":1,"b":2}]},{"ok":true,"result":[]},{"ok":true,"result":[{"a":1,"b":1},{"a":1},... | data | main.py | dedupe_records | python | 47 | 5 | # Dedupe Records — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
R... | 1.0 | [{"request":{"input":{"keys":["id"],"rows":[{"id":1,"x":"a"},{"id":1,"x":"b"},{"id":2}]},"op":"solve"},"response":{"ok":true,"result":[{"id":1,"x":"a"},{"id":2}]}},{"request":{"input":{"keys":[],"rows":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-018-dedupe-records | 10 | Dedupe Records — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"columns":["x","y"],"rows":["","a","b"],"values":[[-2,-2],[0,-8],[-2,7]]}},{"ok":true,"result":{"columns":["x","y"],"rows":["","a"],"values":[[0,-3],[4,2]]}},{"ok":true,"result":{"columns":["x","y"],"rows":["a"],"values":[[0,-3]]}},{"ok":true,"re... | data | main.py | pivot_table | python | 48 | 5 | # Pivot Table — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"column":"c","row":"r","rows":[{"c":"x","r":"a","v":2},{"c":"y","r":"b","v":3},{"c":"x","r":"a","v":-1}],"value":"v"},"op":"solve"},"response":{"ok":true,"result":{"columns":["x","y"],"rows":["a","b"],"values":[[1,0],[0,3]]}}},{"request":{"input":{"column":"c","row":"r","rows":[],"value":"v"},"op"... | easy | 2–8B | kcb-easy-019-pivot-table | 10 | Pivot Table — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"error":"type","field":"a"},{"error":"required","field":"c"}]},{"ok":true,"result":[{"error":"type","field":"a"},{"error":"required","field":"b"}]},{"ok":true,"result":[{"error":"type","field":"b"},{"error":"required","field":"c"}]},{"ok":true,"... | data | main.py | schema_check | python | 47 | 5 | # Schema Check — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Rea... | 1.0 | [{"request":{"input":{"schema":{"a":{"required":true,"type":"integer"},"b":{"required":true,"type":"string"}},"value":{"a":true}},"op":"solve"},"response":{"ok":true,"result":[{"error":"type","field":"a"},{"error":"required","field":"b"}]}},{"request":{"input":{"schema":{},"value":{"a":1}},"op":"solve"},"response":{"ok... | easy | 2–8B | kcb-easy-020-schema-check | 10 | Schema Check — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[[-6,8]]},{"ok":true,"result":[[-7,10]]},{"ok":true,"result":[[-7,6]]},{"ok":true,"result":[[-6,-2],[-1,3]]},{"ok":true,"result":[[-10,10]]},{"ok":true,"result":[[3,5]]},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":[[-6,9]]}... | intervals | main.py | interval_union | python | 46 | 5 | # Interval Union — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
R... | 1.0 | [{"request":{"input":{"intervals":[[5,7],[1,3],[3,6],[9,9]]},"op":"solve"},"response":{"ok":true,"result":[[1,7],[9,9]]}},{"request":{"input":{"intervals":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-021-interval-union | 10 | Interval Union — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":[[-5,-2]]},{"ok":true,"result":[[-4,0]]},{"ok":true,"result":[[-5,5]]},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":tr... | intervals | main.py | interval_gaps | python | 48 | 5 | # Interval Gaps — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Re... | 1.0 | [{"request":{"input":{"bounds":[0,10],"intervals":[[2,4],[6,9]]},"op":"solve"},"response":{"ok":true,"result":[[0,2],[4,6],[9,10]]}},{"request":{"input":{"bounds":[0,5],"intervals":[]},"op":"solve"},"response":{"ok":true,"result":[[0,5]]}}] | easy | 2–8B | kcb-easy-022-interval-gaps | 10 | Interval Gaps — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"at":-6,"peak":3}},{"ok":true,"result":{"at":-5,"peak":3}},{"ok":true,"result":{"at":-9,"peak":1}},{"ok":true,"result":{"at":-2,"peak":3}},{"ok":true,"result":{"at":-7,"peak":3}},{"ok":true,"result":{"at":-7,"peak":2}},{"ok":true,"result":{"at":-... | intervals | main.py | booking_peak | python | 46 | 5 | # Booking Peak — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Rea... | 1.0 | [{"request":{"input":{"bookings":[[1,4],[2,3],[3,5]]},"op":"solve"},"response":{"ok":true,"result":{"at":2,"peak":2}}},{"request":{"input":{"bookings":[]},"op":"solve"},"response":{"ok":true,"result":{"at":null,"peak":0}}}] | easy | 2–8B | kcb-easy-023-booking-peak | 10 | Booking Peak — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":["2018-12-03","2018-12-04","2018-12-06","2018-12-07","2018-12-11","2018-12-12"]},{"ok":true,"result":["2006-09-18","2006-09-19","2006-09-20","2006-09-21","2006-09-22","2006-09-25","2006-09-26","2006-09-27","2006-09-28","2006-09-29","2006-10-02","2... | calendar | main.py | business_days | python | 48 | 5 | # Business Days — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Re... | 1.0 | [{"request":{"input":{"end":"2024-03-04","holidays":["2024-02-29"],"start":"2024-02-28"},"op":"solve"},"response":{"ok":true,"result":["2024-02-28","2024-03-01"]}},{"request":{"input":{"end":"2024-01-01","holidays":[],"start":"2024-01-01"},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-024-business-days | 10 | Business Days — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[[0,0,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,0,0,0]]},{"ok":true,"result":[[0,0,0,0,0,0,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,0,0,0,0,0]]},{"... | calendar | main.py | calendar_month | python | 47 | 5 | # Calendar Month — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
R... | 1.0 | [{"request":{"input":{"month":2,"year":2021},"op":"solve"},"response":{"ok":true,"result":[[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]]}},{"request":{"input":{"month":2,"year":2024},"op":"solve"},"response":{"ok":true,"result":[[0,0,0,1,2,3,4],[5,6,7,8,9,10,11],[12,13,14,15,16,17,... | easy | 2–8B | kcb-easy-025-calendar-month | 10 | Calendar Month — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[1.4285714285714286,-0.14285714285714285,1.2857142857142858,0.8571428571428571]},{"ok":true,"result":[-1.1428571428571428]},{"ok":true,"result":[0.5,-0.3333333333333333,0.16666666666666666,1.3333333333333333,2.0]},{"ok":true,"result":[]},{"ok":tru... | numeric | main.py | moving_average | python | 48 | 5 | # Moving Average — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
R... | 1.0 | [{"request":{"input":{"values":[1,2,3,4],"window":2},"op":"solve"},"response":{"ok":true,"result":[1.5,2.5,3.5]}},{"request":{"input":{"values":[],"window":1},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-026-moving-average | 10 | Moving Average — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"count":4,"max":9,"mean":2,"median":3.0,"min":-7,"variance":45.5}},{"ok":true,"result":{"count":9,"max":6,"mean":0,"median":1,"min":-6,"variance":16.88888888888889}},{"ok":true,"result":{"count":9,"max":1,"mean":-4.666666666666667,"median":-8,"mi... | numeric | main.py | statistics | python | 47 | 5 | # Statistics — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read ... | 1.0 | [{"request":{"input":{"values":[1,2,3,4]},"op":"solve"},"response":{"ok":true,"result":{"count":4,"max":4,"mean":2.5,"median":2.5,"min":1,"variance":1.25}}},{"request":{"input":{"values":[]},"op":"solve"},"response":{"ok":true,"result":{"count":0,"max":null,"mean":null,"median":null,"min":null,"variance":null}}}] | easy | 2–8B | kcb-easy-027-statistics | 10 | Statistics — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"counts":[0,1,0,0],"overflow":1,"underflow":0}},{"ok":true,"result":{"counts":[1,0,0,3],"overflow":1,"underflow":0}},{"ok":true,"result":{"counts":[0,1,3,4],"overflow":2,"underflow":0}},{"ok":true,"result":{"counts":[1,0,3,1],"overflow":3,"underf... | numeric | main.py | histogram | python | 47 | 5 | # Histogram — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read o... | 1.0 | [{"request":{"input":{"edges":[0,1,3],"values":[-1,0,1,2,3]},"op":"solve"},"response":{"ok":true,"result":{"counts":[1,2],"overflow":1,"underflow":1}}},{"request":{"input":{"edges":[0,1],"values":[]},"op":"solve"},"response":{"ok":true,"result":{"counts":[0],"overflow":0,"underflow":0}}}] | easy | 2–8B | kcb-easy-028-histogram | 10 | Histogram — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[[-13,0,-9],[1,-8,-3],[-7,-9,-9]]},{"ok":true,"result":[[3,-2],[-12,8]]},{"ok":true,"result":[[8,4,-2],[-8,4,14]]},{"ok":true,"result":[[-12,-12]]},{"ok":true,"result":[[4,-2,8],[6,-3,12],[-8,4,-16]]},{"ok":true,"result":[[0,0]]},{"ok":true,"resul... | numeric | main.py | matrix_product | python | 47 | 5 | # Matrix Product — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
R... | 1.0 | [{"request":{"input":{"a":[[1,2],[3,4]],"b":[[5],[6]]},"op":"solve"},"response":{"ok":true,"result":[[17],[39]]}},{"request":{"input":{"a":[[0]],"b":[[9]]},"op":"solve"},"response":{"ok":true,"result":[[0]]}}] | easy | 2–8B | kcb-easy-029-matrix-product | 10 | Matrix Product — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[1554,-10969,-576294,-411,6,-22,60381,-32382]},{"ok":true,"result":[0,0,0,0,0,0,0,0,0,0,0]},{"ok":true,"result":[1088,18788803,18788803,-2,17177291,916]},{"ok":true,"result":[]},{"ok":true,"result":[15689]},{"ok":true,"result":[37052,314808098,314... | numeric | main.py | polynomial | python | 47 | 5 | # Polynomial — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read ... | 1.0 | [{"request":{"input":{"coefficients":[1,2,3],"points":[0,1,-1,2]},"op":"solve"},"response":{"ok":true,"result":[1,6,2,17]}},{"request":{"input":{"coefficients":[],"points":[1,0]},"op":"solve"},"response":{"ok":true,"result":[0,0]}}] | easy | 2–8B | kcb-easy-030-polynomial | 10 | Polynomial — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[[2,1],[23,1],[1163,1]]},{"ok":true,"result":[[13,1],[4013,1]]},{"ok":true,"result":[[2,1],[47977,1]]},{"ok":true,"result":[[89,1],[331,1]]},{"ok":true,"result":[[2,1],[11,1],[3571,1]]},{"ok":true,"result":[[2,2],[4007,1]]},{"ok":true,"result":[[8... | numeric | main.py | prime_factors | python | 47 | 5 | # Prime Factors — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Re... | 1.0 | [{"request":{"input":{"number":360},"op":"solve"},"response":{"ok":true,"result":[[2,3],[3,2],[5,1]]}},{"request":{"input":{"number":1},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-031-prime-factors | 10 | Prime Factors — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":"6d1pen8hdj3fk1"},{"ok":true,"result":"3ealh5jd7l2c7cfd"},{"ok":true,"result":"2dgctdcfmso6tck"},{"ok":true,"result":"ab3bgdklqjf2lcj"},{"ok":true,"result":"j3a7ja7bjf3bhb4j"},{"ok":true,"result":"-28g4f7572f1498be6"},{"ok":true,"result":"-6843daj... | numeric | main.py | base_convert | python | 49 | 5 | # Base Convert — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Rea... | 1.0 | [{"request":{"input":{"digits":"ff","from_base":16,"to_base":2},"op":"solve"},"response":{"ok":true,"result":"11111111"}},{"request":{"input":{"digits":"-0","from_base":10,"to_base":36},"op":"solve"},"response":{"ok":true,"result":"0"}}] | easy | 2–8B | kcb-easy-032-base-convert | 10 | Base Convert — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[62,250,0,353,0,187,208]},{"ok":true,"result":[2143,2263]},{"ok":true,"result":[1537,1384,2614,769,2460]},{"ok":true,"result":[328,821,739,739]},{"ok":true,"result":[90,255,165,270,150,225,165,30]},{"ok":true,"result":[1155,425,729,1155,486,365,61... | numeric | main.py | money_split | python | 48 | 5 | # Money Split — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"amount":10,"weights":[1,1,1]},"op":"solve"},"response":{"ok":true,"result":[4,3,3]}},{"request":{"input":{"amount":0,"weights":[1]},"op":"solve"},"response":{"ok":true,"result":[0]}}] | easy | 2–8B | kcb-easy-033-money-split | 10 | Money Split — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"subtotal":"1035.04","tax":"77.63","total":"1112.67"}},{"ok":true,"result":{"subtotal":"1136.66","tax":"227.33","total":"1363.99"}},{"ok":true,"result":{"subtotal":"1809.53","tax":"361.91","total":"2171.44"}},{"ok":true,"result":{"subtotal":"2296... | numeric | main.py | invoice_total | python | 47 | 5 | # Invoice Total — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Re... | 1.0 | [{"request":{"input":{"items":[{"price":"0.335","quantity":3}],"tax_rate":"0.20"},"op":"solve"},"response":{"ok":true,"result":{"subtotal":"1.01","tax":"0.20","total":"1.21"}}},{"request":{"input":{"items":[],"tax_rate":"0"},"op":"solve"},"response":{"ok":true,"result":{"subtotal":"0.00","tax":"0.00","total":"0.00"}}}] | easy | 2–8B | kcb-easy-034-invoice-total | 10 | Invoice Total — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":3},{"ok":true,"result":null},{"ok":true,"result":null},{"ok":true,"result":6},{"ok":true,"result":null},{"ok":true,"result":null},{"ok":true,"result":2},{"ok":true,"result":3},{"ok":true,"result":9},{"ok":true,"result":11},{"ok":true,"result":7},{... | numeric | main.py | coin_change | python | 48 | 5 | # Coin Change — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"amount":6,"coins":[1,3,4]},"op":"solve"},"response":{"ok":true,"result":2}},{"request":{"input":{"amount":0,"coins":[]},"op":"solve"},"response":{"ok":true,"result":0}}] | easy | 2–8B | kcb-easy-035-coin-change | 10 | Coin Change — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":["e"]},{"ok":true,"result":["a","b","c","e"]},{"ok":true,"result":["a"]},{"ok":true,"result":["a","c"]},{"ok":true,"result":["a","b","c","d"]},{"ok":true,"result":["d","e"]},{"ok":true,"result":["c"]},{"ok":true,"result":["a","b","c"]},{"ok":true,... | graphs | main.py | graph_reach | python | 48 | 5 | # Graph Reach — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"edges":[["a","b"],["b","c"]],"nodes":["a","b","c","d"],"start":"a"},"op":"solve"},"response":{"ok":true,"result":["a","b","c"]}},{"request":{"input":{"edges":[],"nodes":["a"],"start":"a"},"op":"solve"},"response":{"ok":true,"result":["a"]}}] | easy | 2–8B | kcb-easy-036-graph-reach | 10 | Graph Reach — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"a":3,"b":0,"c":6}},{"ok":true,"result":{"a":0}},{"ok":true,"result":{"a":null,"b":0,"c":null,"d":null,"e":null}},{"ok":true,"result":{"a":null,"b":13,"c":1,"d":0,"e":null,"f":5}},{"ok":true,"result":{"a":1,"b":0}},{"ok":true,"result":{"a":0}},{"... | graphs | main.py | shortest_path | python | 48 | 5 | # Shortest Path — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Re... | 1.0 | [{"request":{"input":{"edges":[["a","b",5],["a","c",1],["c","b",1]],"nodes":["a","b","c","d"],"start":"a"},"op":"solve"},"response":{"ok":true,"result":{"a":0,"b":2,"c":1,"d":null}}},{"request":{"input":{"edges":[],"nodes":["a"],"start":"a"},"op":"solve"},"response":{"ok":true,"result":{"a":0}}}] | easy | 2–8B | kcb-easy-037-shortest-path | 10 | Shortest Path — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":["a"]},{"ok":true,"result":["a","b","c","e","f","d"]},{"ok":true,"result":null},{"ok":true,"result":null},{"ok":true,"result":["a","b","c","d"]},{"ok":true,"result":null},{"ok":true,"result":null},{"ok":true,"result":null},{"ok":true,"result":["a"... | graphs | main.py | topological_order | python | 48 | 5 | # Topological Order — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY)... | 1.0 | [{"request":{"input":{"edges":[["a","c"]],"nodes":["c","a","b"]},"op":"solve"},"response":{"ok":true,"result":["a","b","c"]}},{"request":{"input":{"edges":[],"nodes":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-038-topological-order | 10 | Topological Order — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[["a","c"],["b"],["d"]]},{"ok":true,"result":[["a","b"]]},{"ok":true,"result":[["a","b","c","d","e"]]},{"ok":true,"result":[["a","b"]]},{"ok":true,"result":[["a"],["b"]]},{"ok":true,"result":[["a","b","c","d"]]},{"ok":true,"result":[["a","b"],["c"... | graphs | main.py | connected_components | python | 47 | 5 | # Connected Components — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTO... | 1.0 | [{"request":{"input":{"edges":[["a","b"],["c","d"]],"nodes":["d","c","b","a"]},"op":"solve"},"response":{"ok":true,"result":[["a","b"],["c","d"]]}},{"request":{"input":{"edges":[],"nodes":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-039-connected-components | 10 | Connected Components — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":null},{"ok":true,"result":3},{"ok":true,"result":5},{"ok":true,"result":2},{"ok":true,"result":null},{"ok":true,"result":1},{"ok":true,"result":null},{"ok":true,"result":null},{"ok":true,"result":4},{"ok":true,"result":5},{"ok":true,"result":2},{"... | graphs | main.py | grid_route | python | 48 | 5 | # Grid Route — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read ... | 1.0 | [{"request":{"input":{"end":[2,2],"grid":["...",".#.","..."],"start":[0,0]},"op":"solve"},"response":{"ok":true,"result":4}},{"request":{"input":{"end":[0,0],"grid":["."],"start":[0,0]},"op":"solve"},"response":{"ok":true,"result":0}}] | easy | 2–8B | kcb-easy-040-grid-route | 10 | Grid Route — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"depth":0,"id":"a"},{"depth":1,"id":"d"},{"depth":0,"id":"b"},{"depth":1,"id":"c"}]},{"ok":true,"result":[{"depth":0,"id":"a"}]},{"ok":true,"result":[]},{"ok":true,"result":[{"depth":0,"id":"a"},{"depth":1,"id":"c"},{"depth":2,"id":"g"},{"depth"... | graphs | main.py | tree_outline | python | 46 | 5 | # Tree Outline — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Rea... | 1.0 | [{"request":{"input":{"nodes":[{"id":"b","parent":"a"},{"id":"a","parent":null},{"id":"c","parent":null}]},"op":"solve"},"response":{"ok":true,"result":[{"depth":0,"id":"a"},{"depth":1,"id":"b"},{"depth":0,"id":"c"}]}},{"request":{"input":{"nodes":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-041-tree-outline | 10 | Tree Outline — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":null},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":null},{"ok":true,"result":null},{"ok":true,"result":[]},{"ok":true,"result":["a"]},{"ok":true,"result":null},{"ok":true,"result":null},{"ok":true,"result":null},{"ok":true,"... | graphs | main.py | dependency_build | python | 47 | 5 | # Dependency Build — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).... | 1.0 | [{"request":{"input":{"dependencies":{"app":["lib","cfg"],"cfg":[],"lib":["cfg"],"unused":[]},"targets":["app"]},"op":"solve"},"response":{"ok":true,"result":["cfg","lib","app"]}},{"request":{"input":{"dependencies":{},"targets":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-042-dependency-build | 10 | Dependency Build — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[]},{"ok":true,"result":["/é/a","/","/b/a/a","/","/b/é"]},{"ok":true,"result":["/b/b/a","/b/é/b/a/a","/a/a/a","/b/b","/a/a/a","/b","/b","/b/b/b","/"]},{"ok":true,"result":["/b/a/é/a/é/é","/","/é/a/é","/a/a/b/a","/a/b/a","/a","/b/b/é","/"]},{"ok":t... | systems | main.py | path_normalize | python | 46 | 5 | # Path Normalize — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
R... | 1.0 | [{"request":{"input":{"paths":["a/../b//c/","/../../x",""]},"op":"solve"},"response":{"ok":true,"result":["/b/c","/x","/"]}},{"request":{"input":{"paths":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-043-path-normalize | 10 | Path Normalize — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"a":["1","1","1"],"flag":["",""],"q":["é"],"x":["+","+","a b"]}},{"ok":true,"result":{}},{"ok":true,"result":{"":["v","v"],"a":["1","2"],"flag":[""],"x":["+","+","+","a b","a b"]}},{"ok":true,"result":{"":["v"],"a":["1","1","1","2","2"],"q":["é"]... | systems | main.py | url_query | python | 46 | 5 | # Url Query — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read o... | 1.0 | [{"request":{"input":{"query":"a=1&a=2&x=hello+world&empty="},"op":"solve"},"response":{"ok":true,"result":{"a":["1","2"],"empty":[""],"x":["hello world"]}}},{"request":{"input":{"query":""},"op":"solve"},"response":{"ok":true,"result":{}}}] | easy | 2–8B | kcb-easy-044-url-query | 10 | Url Query — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":["0.0.0","0.0.4-a.2","0.4.0-b","0.5.0-a.10","0.8.0-a.2","1.1.0-a","1.4.2-1","1.7.2-a","1.8.0-a.2","2.0.0","2.2.0","2.8.2-a.2"]},{"ok":true,"result":["0.0.3-a.10","0.1.1-a.2","0.4.0-a.2","0.11.4-a.10","1.3.2-1","1.6.0-a.10","1.7.4-b","1.10.3-a.2","... | systems | main.py | version_sort | python | 46 | 5 | # Version Sort — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Rea... | 1.0 | [{"request":{"input":{"versions":["1.0.0","1.0.0-beta","1.0.0-alpha.10","1.0.0-alpha.2"]},"op":"solve"},"response":{"ok":true,"result":["1.0.0-alpha.2","1.0.0-alpha.10","1.0.0-beta","1.0.0"]}},{"request":{"input":{"versions":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-045-version-sort | 10 | Version Sort — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"hits":4,"keys":["é","b","a/b","a","c"],"misses":6}},{"ok":true,"result":{"hits":0,"keys":["c"],"misses":1}},{"ok":true,"result":{"hits":3,"keys":["b","é","a/b"],"misses":7}},{"ok":true,"result":{"hits":1,"keys":["a","é"],"misses":6}},{"ok":true,... | systems | main.py | lru_trace | python | 47 | 5 | # Lru Trace — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read o... | 1.0 | [{"request":{"input":{"accesses":["a","b","a","c","b"],"capacity":2},"op":"solve"},"response":{"ok":true,"result":{"hits":1,"keys":["c","b"],"misses":4}}},{"request":{"input":{"accesses":["a","a"],"capacity":0},"op":"solve"},"response":{"ok":true,"result":{"hits":0,"keys":[],"misses":2}}}] | easy | 2–8B | kcb-easy-046-lru-trace | 10 | Lru Trace — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[true]},{"ok":true,"result":[true,true,false,false,false,false,false,true,false,true,false,false,false,false,false,false,false,false]},{"ok":true,"result":[true,true,true,true,false,false,false,false,true,true,true,false,true,false,false]},{"ok":t... | systems | main.py | rate_limit | python | 48 | 5 | # Rate Limit — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read ... | 1.0 | [{"request":{"input":{"events":[{"key":"a","time":0},{"key":"a","time":0},{"key":"a","time":1},{"key":"a","time":5}],"limit":2,"window":5},"op":"solve"},"response":{"ok":true,"result":[true,true,false,true]}},{"request":{"input":{"events":[],"limit":1,"window":1},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-047-rate-limit | 10 | Rate Limit — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"popped":[[],null,"x",{"a":1},{"a":1}],"remaining":[[],"x",null,null]}},{"ok":true,"result":{"popped":[[],null,"x",null,null,{"a":1},"x","x"],"remaining":[[],null,[]]}},{"ok":true,"result":{"popped":[null,null],"remaining":[]}},{"ok":true,"result... | systems | main.py | priority_queue | python | 46 | 5 | # Priority Queue — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
R... | 1.0 | [{"request":{"input":{"events":[{"op":"push","priority":2,"value":"a"},{"op":"push","priority":1,"value":"b"},{"op":"pop"}]},"op":"solve"},"response":{"ok":true,"result":{"popped":["b"],"remaining":["a"]}}},{"request":{"input":{"events":[]},"op":"solve"},"response":{"ok":true,"result":{"popped":[],"remaining":[]}}}] | easy | 2–8B | kcb-easy-048-priority-queue | 10 | Priority Queue — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"completion":{"0":3,"1":4,"2":6},"slices":[{"end":3,"id":"0","start":0},{"end":4,"id":"1","start":3},{"end":6,"id":"2","start":4}]}},{"ok":true,"result":{"completion":{"0":2,"1":6},"slices":[{"end":2,"id":"0","start":0},{"end":6,"id":"1","start":... | systems | main.py | round_robin | python | 47 | 5 | # Round Robin — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"jobs":[{"duration":3,"id":"a"},{"duration":2,"id":"b"}],"quantum":2},"op":"solve"},"response":{"ok":true,"result":{"completion":{"a":5,"b":4},"slices":[{"end":2,"id":"a","start":0},{"end":4,"id":"b","start":2},{"end":5,"id":"a","start":4}]}}},{"request":{"input":{"jobs":[],"quantum":1},"op":"solv... | easy | 2–8B | kcb-easy-049-round-robin | 10 | Round Robin — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"rejected":[],"stock":{}}},{"ok":true,"result":{"rejected":[],"stock":{"a":2,"b":8,"c":5}}},{"ok":true,"result":{"rejected":[1,4,7,8],"stock":{"a":0,"c":2}}},{"ok":true,"result":{"rejected":[],"stock":{}}},{"ok":true,"result":{"rejected":[1,4,7,1... | business | main.py | inventory_ledger | python | 46 | 5 | # Inventory Ledger — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).... | 1.0 | [{"request":{"input":{"events":[{"delta":3,"sku":"a"},{"delta":-4,"sku":"a"},{"delta":-2,"sku":"a"}]},"op":"solve"},"response":{"ok":true,"result":{"rejected":[1],"stock":{"a":1}}}},{"request":{"input":{"events":[]},"op":"solve"},"response":{"ok":true,"result":{"rejected":[],"stock":{}}}}] | easy | 2–8B | kcb-easy-050-inventory-ledger | 10 | Inventory Ledger — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"balances":{"a":21,"b":12},"rejected":[1,2,3,4,6,8]}},{"ok":true,"result":{"balances":{"a":10,"b":21},"rejected":[0,1,5]}},{"ok":true,"result":{"balances":{"a":5,"b":14},"rejected":[2,5,6,7,8]}},{"ok":true,"result":{"balances":{"a":10,"b":6},"rej... | business | main.py | bank_ledger | python | 47 | 5 | # Bank Ledger — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"balances":{"a":10,"b":0},"transfers":[{"amount":7,"from":"a","to":"b"},{"amount":4,"from":"a","to":"b"}]},"op":"solve"},"response":{"ok":true,"result":{"balances":{"a":3,"b":7},"rejected":[1]}}},{"request":{"input":{"balances":{},"transfers":[]},"op":"solve"},"response":{"ok":true,"result":{"bala... | easy | 2–8B | kcb-easy-051-bank-ledger | 10 | Bank Ledger — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"invalid":7,"ranking":[{"candidate":"c","votes":8},{"candidate":"a","votes":4},{"candidate":"b","votes":3}]}},{"ok":true,"result":{"invalid":8,"ranking":[{"candidate":"c","votes":7},{"candidate":"a","votes":6},{"candidate":"b","votes":4}]}},{"ok"... | business | main.py | ballot_count | python | 47 | 5 | # Ballot Count — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Rea... | 1.0 | [{"request":{"input":{"candidates":["b","a","c"],"votes":["a","b","a","x"]},"op":"solve"},"response":{"ok":true,"result":{"invalid":1,"ranking":[{"candidate":"a","votes":2},{"candidate":"b","votes":1},{"candidate":"c","votes":0}]}}},{"request":{"input":{"candidates":[],"votes":[]},"op":"solve"},"response":{"ok":true,"r... | easy | 2–8B | kcb-easy-052-ballot-count | 10 | Ballot Count — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"id":"5","score":6},{"id":"0","score":5},{"id":"2","score":3},{"id":"1","score":1},{"id":"3","score":1},{"id":"4","score":1}]},{"ok":true,"result":[{"id":"0","score":6},{"id":"2","score":3},{"id":"3","score":3},{"id":"1","score":2}]},{"ok":true,... | business | main.py | search_rank | python | 47 | 5 | # Search Rank — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"documents":[{"id":"b","text":"red blue"},{"id":"a","text":"red red"},{"id":"c","text":"green"}],"query":"RED red blue"},"op":"solve"},"response":{"ok":true,"result":[{"id":"a","score":2},{"id":"b","score":2}]}},{"request":{"input":{"documents":[],"query":"x"},"op":"solve"},"response":{"ok":true,"... | easy | 2–8B | kcb-easy-053-search-rank | 10 | Search Rank — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"counts":{"ERROR":2,"INFO":3,"WARN":3,"error":3},"errors":["9-_BéaB_é-aaA\n Bb b\néB\n9A0b\n9a -a_\n9_é99bBa-BbAAa-é9aB-","aAB9ébAb9b009A_9\nb90a-90é-\né9b-A- 9b-\n0\nB_a"]}},{"ok":true,"result":{"counts":{"ERROR":2,"WARN":1,"error":1},"errors":[... | business | main.py | log_summary | python | 46 | 5 | # Log Summary — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read... | 1.0 | [{"request":{"input":{"events":[{"level":"INFO","message":"start"},{"level":"ERROR","message":"bad"},{"level":"ERROR","message":"worse"}]},"op":"solve"},"response":{"ok":true,"result":{"counts":{"ERROR":2,"INFO":1},"errors":["bad","worse"]}}},{"request":{"input":{"events":[]},"op":"solve"},"response":{"ok":true,"result... | easy | 2–8B | kcb-easy-054-log-summary | 10 | Log Summary — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"down":10,"up":0}},{"ok":true,"result":{"down":10,"up":0}},{"ok":true,"result":{"down":10,"up":0}},{"ok":true,"result":{"down":10,"up":0}},{"ok":true,"result":{"down":0,"up":10}},{"ok":true,"result":{"down":10,"up":0}},{"ok":true,"result":{"down"... | business | main.py | uptime_report | python | 48 | 5 | # Uptime Report — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Re... | 1.0 | [{"request":{"input":{"downtime":[[-2,3],[2,5],[8,12]],"end":10,"start":0},"op":"solve"},"response":{"ok":true,"result":{"down":7,"up":3}}},{"request":{"input":{"downtime":[],"end":0,"start":0},"op":"solve"},"response":{"ok":true,"result":{"down":0,"up":0}}}] | easy | 2–8B | kcb-easy-055-uptime-report | 10 | Uptime Report — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":false},{"ok":true,"result":true},{"ok":true,"result":false},{"ok":true,"result":false},{"ok":true,"result":false},{"ok":true,"result":false},{"ok":true,"result":false},{"ok":true,"result":false},{"ok":true,"result":false},{"ok":true,"result":true}... | geometry | main.py | segment_intersection | python | 50 | 5 | # Segment Intersection — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTO... | 1.0 | [{"request":{"input":{"a":[0,0],"b":[2,2],"c":[0,2],"d":[2,0]},"op":"solve"},"response":{"ok":true,"result":true}},{"request":{"input":{"a":[0,0],"b":[1,0],"c":[2,0],"d":[3,0]},"op":"solve"},"response":{"ok":true,"result":false}}] | easy | 2–8B | kcb-easy-056-segment-intersection | 10 | Segment Intersection — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":156.0},{"ok":true,"result":85.0},{"ok":true,"result":84.0},{"ok":true,"result":64.0},{"ok":true,"result":40.0},{"ok":true,"result":77.0},{"ok":true,"result":33.0},{"ok":true,"result":60.0},{"ok":true,"result":154.0},{"ok":true,"result":192.0},{"ok... | geometry | main.py | polygon_area | python | 47 | 5 | # Polygon Area — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Rea... | 1.0 | [{"request":{"input":{"points":[[0,0],[4,0],[4,3],[0,3]]},"op":"solve"},"response":{"ok":true,"result":12.0}},{"request":{"input":{"points":[]},"op":"solve"},"response":{"ok":true,"result":0}}] | easy | 2–8B | kcb-easy-057-polygon-area | 10 | Polygon Area — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[[-4,9],[1,7],[4,9],[10,7],[11,1],[12,0]]},{"ok":true,"result":[[-5,2],[-4,9],[-2,2],[2,0],[4,7],[8,0]]},{"ok":true,"result":[[-2,8],[9,6],[10,0]]},{"ok":true,"result":[[-5,4],[2,3],[8,0]]},{"ok":true,"result":[[-4,5],[-1,7],[3,5],[4,8],[7,0]]},{"... | geometry | main.py | skyline | python | 46 | 5 | # Skyline — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read one... | 1.0 | [{"request":{"input":{"buildings":[[1,4,3],[2,6,5],[7,8,2]]},"op":"solve"},"response":{"ok":true,"result":[[1,3],[2,5],[6,0],[7,2],[8,0]]}},{"request":{"input":{"buildings":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-058-skyline | 10 | Skyline — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":47},{"ok":true,"result":13},{"ok":true,"result":6},{"ok":true,"result":18},{"ok":true,"result":18},{"ok":true,"result":81},{"ok":true,"result":14},{"ok":true,"result":14},{"ok":true,"result":29},{"ok":true,"result":12},{"ok":true,"result":22},{"ok... | optimization | main.py | knapsack | python | 47 | 5 | # Knapsack — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Read on... | 1.0 | [{"request":{"input":{"capacity":5,"items":[{"value":3,"weight":2},{"value":4,"weight":3},{"value":8,"weight":4}]},"op":"solve"},"response":{"ok":true,"result":8}},{"request":{"input":{"capacity":5,"items":[]},"op":"solve"},"response":{"ok":true,"result":0}}] | easy | 2–8B | kcb-easy-059-knapsack | 10 | Knapsack — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":["0","4"]},{"ok":true,"result":["1","3"]},{"ok":true,"result":["0"]},{"ok":true,"result":["1","2","3","5"]},{"ok":true,"result":[]},{"ok":true,"result":["5","7","1"]},{"ok":true,"result":["0"]},{"ok":true,"result":["1"]},{"ok":true,"result":["0"]}... | optimization | main.py | task_selection | python | 46 | 5 | # Task Selection — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
R... | 1.0 | [{"request":{"input":{"tasks":[{"end":3,"id":"a","start":0},{"end":2,"id":"b","start":1},{"end":4,"id":"c","start":2}]},"op":"solve"},"response":{"ok":true,"result":["b","c"]}},{"request":{"input":{"tasks":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-060-task-selection | 10 | Task Selection — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[["delete","é"],["insert","c"],["insert","b"],["keep","a"],["insert","é"],["insert","a/b"],["insert",""],["insert","é"],["insert",""],["insert","é"],["insert","é"]]},{"ok":true,"result":[["delete","b"],["insert","c"],["insert","c"],["keep","a/b"],... | optimization | main.py | sequence_diff | python | 48 | 5 | # Sequence Diff — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
Re... | 1.0 | [{"request":{"input":{"a":["a","b"],"b":["b","c"]},"op":"solve"},"response":{"ok":true,"result":[["delete","a"],["keep","b"],["insert","c"]]}},{"request":{"input":{"a":[],"b":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-061-sequence-diff | 10 | Sequence Diff — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[false,false,false,false,false,false,false,false]},{"ok":true,"result":[false]},{"ok":true,"result":[false,false,false,false,false]},{"ok":true,"result":[true,true,true,true,true,true,true,true,true,true,true]},{"ok":true,"result":[true,true,true,... | languages | main.py | finite_automaton | python | 49 | 5 | # Finite Automaton — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).... | 1.0 | [{"request":{"input":{"accepting":["a"],"start":"a","transitions":[{"from":"a","symbol":"x","to":"b"},{"from":"b","symbol":"x","to":"a"}],"words":["","x","xx","y"]},"op":"solve"},"response":{"ok":true,"result":[true,false,true,false]}},{"request":{"input":{"accepting":[],"start":"s","transitions":[],"words":["","a"]},"... | easy | 2–8B | kcb-easy-062-finite-automaton | 10 | Finite Automaton — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"bytes":24,"path":"0/é","sha256":"0f2ed231e750f8360e124c4bc7c1ab61b69d140848462e9cb8232367d5d1e42c"},{"bytes":36,"path":"1/é","sha256":"066ee00685a59131aa91ebc4a8e165c5b1a230e40caec07627755583ca192492"}]},{"ok":true,"result":[]},{"ok":true,"resu... | systems | main.py | content_manifest | python | 46 | 5 | # Content Manifest — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).... | 1.0 | [{"request":{"input":{"files":{"empty":""}},"op":"solve"},"response":{"ok":true,"result":[{"bytes":0,"path":"empty","sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}]}},{"request":{"input":{"files":{}},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-063-content-manifest | 10 | Content Manifest — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[[-3,0],[-3,1],[-2,-1],[-2,3],[-1,2],[0,-1],[1,3],[2,1],[3,2],[3,3]]},{"ok":true,"result":[]},{"ok":true,"result":[[-3,1],[-3,2],[-2,-3],[-2,-2],[-2,3],[-1,-2],[-1,-1],[-1,3],[0,-1],[0,4],[1,1],[1,2],[1,3],[2,2],[2,3]]},{"ok":true,"result":[[-2,-2... | simulation | main.py | cellular_automaton | python | 48 | 5 | # Cellular Automaton — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY... | 1.0 | [{"request":{"input":{"live":[[0,0],[0,1],[0,2]],"steps":1},"op":"solve"},"response":{"ok":true,"result":[[-1,1],[0,1],[1,1]]}},{"request":{"input":{"live":[],"steps":10},"op":"solve"},"response":{"ok":true,"result":[]}}] | easy | 2–8B | kcb-easy-064-cellular-automaton | 10 | Cellular Automaton — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":-201},{"ok":true,"result":-40},{"ok":true,"result":11},{"ok":true,"result":2},{"ok":true,"result":-8},{"ok":true,"result":90},{"ok":true,"result":-10},{"ok":true,"result":-1},{"ok":true,"result":0},{"ok":true,"result":-1},{"ok":true,"result":-15},... | languages | main.py | expression_eval | python | 47 | 5 | # Expression Eval — CLI project
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTORY).
... | 1.0 | [{"request":{"input":{"tokens":["5","2","-","4","*"]},"op":"solve"},"response":{"ok":true,"result":12}},{"request":{"input":{"tokens":["-7","3","/"]},"op":"solve"},"response":{"ok":true,"result":-2}}] | easy | 2–8B | kcb-easy-065-expression-eval | 10 | Expression Eval — CLI project |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"count":1,"word":"9"},{"count":1,"word":"b"},{"count":1,"word":"b00a9ab"},{"count":1,"word":"ba"}]},{"ok":true,"result":[{"count":1,"word":"0"}]},{"ok":true,"result":[{"count":1,"word":"00"}]},{"ok":true,"result":[{"count":2,"word":"a9"},{"count... | text | main.py | word_frequency | python | 149 | 13 | # Word Frequency — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIR... | 1.0 | [{"request":{"input":{"text":"Red blue RED! 42"},"op":"solve"},"response":{"ok":true,"result":[{"count":2,"word":"red"},{"count":1,"word":"42"},{"count":1,"word":"blue"}]}},{"request":{"input":{"text":""},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-001-word-frequency | 10 | Word Frequency — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":["b-ba-b-a-b-a-bbaa","a-b-a-b-aa-aa-a-a-a-a-b-a","a-b-b-aaabb-b-a-a-a-a","b-a-a-a","a-ba-abaa-ab-b-aa-a-b-b-aa-ab-aa-b","a-a-a-aa-a","ab","a-a-a-a-a-a-a-a-ab-ab","bb-bb-a-ab-aa","a-a-a-b-b-aba-a-a-b-b-bbabaab-ba","aa-a-a-aa-a-a-a-a-a"]},{"ok":true... | text | main.py | slug_registry | python | 149 | 13 | # Slug Registry — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRE... | 1.0 | [{"request":{"input":{"titles":["Hello World","hello world","hello-world-2",""]},"op":"solve"},"response":{"ok":true,"result":["hello-world","hello-world-2","hello-world-2-2","item"]}},{"request":{"input":{"titles":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-002-slug-registry | 10 | Slug Registry — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[["0",1],[" ",1],["9",1],["_",1],["A",1],["0",1],["a",1],["é",1],[" ",1],["b",1],["0",1],[" ",2],["_",1],["-",1],["0",1],["a",2],["B",1],["0",1],["b",1],[" ",1]]},{"ok":true,"result":[["B",1],["_",1],["B",1],["a",1],["é",1],["0",1],[" ",1],["\n",1... | text | main.py | run_length | python | 149 | 13 | # Run Length — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTO... | 1.0 | [{"request":{"input":{"text":"aaabbcaa"},"op":"solve"},"response":{"ok":true,"result":[["a",3],["b",2],["c",1],["a",2]]}},{"request":{"input":{"text":""},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-003-run-length | 10 | Run Length — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"balanced":false,"position":1}},{"ok":true,"result":{"balanced":false,"position":3}},{"ok":true,"result":{"balanced":false,"position":3}},{"ok":true,"result":{"balanced":false,"position":8}},{"ok":true,"result":{"balanced":false,"position":2}},{"... | text | main.py | bracket_audit | python | 150 | 13 | # Bracket Audit — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRE... | 1.0 | [{"request":{"input":{"text":"a([)]"},"op":"solve"},"response":{"ok":true,"result":{"balanced":false,"position":3}}},{"request":{"input":{"text":""},"op":"solve"},"response":{"ok":true,"result":{"balanced":true,"position":null}}}] | hard | 16–32B | kcb-hard-004-bracket-audit | 10 | Bracket Audit — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":["Aa","_a-9bA-","BBé","0_ab"]},{"ok":true,"result":["9 0a","-9é-0Aéé9aéb","_é B0","b0aéaB0AB","00-","b-0_A9ABA99"]},{"ok":true,"result":["AbbABébb99"]},{"ok":true,"result":["--A _abé-b"]},{"ok":true,"result":["0aAB0B_a9 éa","Ba0_ A 9b9--","9Bé0bAb... | text | main.py | text_wrap | python | 150 | 13 | # Text Wrap — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTOR... | 1.0 | [{"request":{"input":{"text":"one two three four","width":7},"op":"solve"},"response":{"ok":true,"result":["one two","three","four"]}},{"request":{"input":{"text":"","width":1},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-005-text-wrap | 10 | Text Wrap — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"positions":[0],"tokens":["c","a","é","a/b"]}]},{"ok":true,"result":[{"positions":[2],"tokens":["","a","b","a"]},{"positions":[3],"tokens":["a","b","a","b"]},{"positions":[4],"tokens":["b","a","b","é"]},{"positions":[1],"tokens":["c","","a","b"]... | text | main.py | ngram_index | python | 150 | 13 | # Ngram Index — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECT... | 1.0 | [{"request":{"input":{"n":2,"tokens":["a","b","a","b"]},"op":"solve"},"response":{"ok":true,"result":[{"positions":[0,2],"tokens":["a","b"]},{"positions":[1],"tokens":["b","a"]}]}},{"request":{"input":{"n":1,"tokens":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-006-ngram-index | 10 | Ngram Index — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":["c"]},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":["a","b","c"]},{"ok":true,"result":["é"]},{"ok":true,"result":["a","b","c"]},{"ok":true,"result":["é"]},{"ok":true,"result":["c"]},{"ok":true,"result":["a","c","é"]},{"ok":... | text | main.py | glob_filter | python | 150 | 13 | # Glob Filter — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECT... | 1.0 | [{"request":{"input":{"paths":["a.py","B.py","a.txt","a.py","x/a.py"],"pattern":"*.py"},"op":"solve"},"response":{"ok":true,"result":["B.py","a.py","x/a.py"]}},{"request":{"input":{"paths":[],"pattern":"*"},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-007-glob-filter | 10 | Glob Filter — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":27},{"ok":true,"result":19},{"ok":true,"result":39},{"ok":true,"result":13},{"ok":true,"result":41},{"ok":true,"result":44},{"ok":true,"result":48},{"ok":true,"result":24},{"ok":true,"result":24},{"ok":true,"result":28},{"ok":true,"result":22},{"o... | text | main.py | edit_distance | python | 150 | 13 | # Edit Distance — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRE... | 1.0 | [{"request":{"input":{"a":"kitten","b":"sitting"},"op":"solve"},"response":{"ok":true,"result":3}},{"request":{"input":{"a":"","b":""},"op":"solve"},"response":{"ok":true,"result":0}}] | hard | 16–32B | kcb-hard-008-edit-distance | 10 | Edit Distance — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":"CXCVIII"},{"ok":true,"result":"MMMCCCXCVII"},{"ok":true,"result":"MDCCLXI"},{"ok":true,"result":"MDLII"},{"ok":true,"result":"MCXIX"},{"ok":true,"result":"MMCDXXIV"},{"ok":true,"result":"MMCMLXXIX"},{"ok":true,"result":"MCCV"},{"ok":true,"result"... | text | main.py | roman_codec | python | 150 | 13 | # Roman Codec — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECT... | 1.0 | [{"request":{"input":{"number":1994},"op":"solve"},"response":{"ok":true,"result":"MCMXCIV"}},{"request":{"input":{"number":1},"op":"solve"},"response":{"ok":true,"result":"I"}}] | hard | 16–32B | kcb-hard-009-roman-codec | 10 | Roman Codec — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":"c0C\n\n_99\nD_ D\nd\n 9CD"},{"ok":true,"result":"0yxy éé y_Xxy- 9\nXYX 009 9é_9é_ --\n--0XX_0xy9Xéé"},{"ok":true,"result":"II-_j0iéI-i9é éji0iJ jjIé 9 ii\nIijII9-Iii 9J"},{"ok":true,"result":""},{"ok":true,"result":"0k\n"},{"ok":true,"result":"... | text | main.py | caesar_cipher | python | 150 | 13 | # Caesar Cipher — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRE... | 1.0 | [{"request":{"input":{"shift":1,"text":"Az-z! 9"},"op":"solve"},"response":{"ok":true,"result":"Ba-a! 9"}},{"request":{"input":{"shift":0,"text":""},"op":"solve"},"response":{"ok":true,"result":""}}] | hard | 16–32B | kcb-hard-010-caesar-cipher | 10 | Caesar Cipher — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"a":"\na\n,bbé\néé,é, ba\n,\"é,b\n b\"\"bé\"a,\",b, ,é éb a\" \n","b":"00éa 0é\nA9é_aB A99_Bbb_B--9 __-Ba9_-aé__BaB9bAAa\n0BBAbé"},{"a":",ba\"a\"a,","b":"Béé baa9éB9 -9A--A"},{"a":"a\n ","b":"00Aéé-a-_\n-A-"},{"a":" \n, b ,é,b\né,\"\n é\né... | data | main.py | csv_records | python | 149 | 13 | # Csv Records — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECT... | 1.0 | [{"request":{"input":{"csv":"name,n\na,1\nb,2\n"},"op":"solve"},"response":{"ok":true,"result":[{"n":"1","name":"a"},{"n":"2","name":"b"}]}},{"request":{"input":{"csv":""},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-011-csv-records | 10 | Csv Records — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"b":null,"c":null},{"b":1,"c":null},{"b":null,"c":null}]},{"ok":true,"result":[{"b":"x","c":null}]},{"ok":true,"result":[{"b":null,"c":null},{"b":null,"c":null}]},{"ok":true,"result":[{"b":2,"c":null},{"b":null,"c":null},{"b":null,"c":null},{"b"... | data | main.py | record_query | python | 150 | 13 | # Record Query — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIREC... | 1.0 | [{"request":{"input":{"rows":[{"a":1,"b":"x"},{"a":2},{"a":1}],"select":["b"],"where":{"a":1}},"op":"solve"},"response":{"ok":true,"result":[{"b":"x"},{"b":null}]}},{"request":{"input":{"rows":[],"select":[],"where":{}},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-012-record-query | 10 | Record Query — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"left":{"k":0},"right":{"k":0}},{"left":{"k":0},"right":{"k":0}}]},{"ok":true,"result":[{"left":{"k":3},"right":{"k":3}}]},{"ok":true,"result":[{"left":{"k":0},"right":{"k":0}}]},{"ok":true,"result":[{"left":{"k":2},"right":{"k":2}},{"left":{"k"... | data | main.py | inner_join | python | 150 | 13 | # Inner Join — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTO... | 1.0 | [{"request":{"input":{"key":"id","left":[{"id":1},{"id":2}],"right":[{"id":2},{"id":2,"x":3}]},"op":"solve"},"response":{"ok":true,"result":[{"left":{"id":2},"right":{"id":2}},{"left":{"id":2},"right":{"id":2,"x":3}}]}},{"request":{"input":{"key":"k","left":[],"right":[]},"op":"solve"},"response":{"ok":true,"result":[]... | hard | 16–32B | kcb-hard-013-inner-join | 10 | Inner Join — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"count":6,"key":"","sum":-33},{"count":6,"key":"a","sum":-8},{"count":3,"key":"b","sum":21}]},{"ok":true,"result":[{"count":2,"key":"","sum":11},{"count":3,"key":"a","sum":-8},{"count":7,"key":"b","sum":19}]},{"ok":true,"result":[{"count":2,"key... | data | main.py | group_totals | python | 149 | 13 | # Group Totals — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIREC... | 1.0 | [{"request":{"input":{"group":"g","rows":[{"g":"b","v":2},{"g":"a","v":3},{"g":"b","v":-1}],"value":"v"},"op":"solve"},"response":{"ok":true,"result":[{"count":1,"key":"a","sum":3},{"count":2,"key":"b","sum":1}]}},{"request":{"input":{"group":"g","rows":[],"value":"v"},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-014-group-totals | 10 | Group Totals — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"/a~1b/0/0":-8,"/a~1b/0/1":2,"/a~1b/0/2":-2,"/a~1b/0/3":8,"/a~1b/0/4":3,"/a~1b/0/5":7,"/a~1b/0/6":4,"/a~1b/0/7":9,"/a~1b/1":{},"/a~1b/2":null,"/x":null,"/~0/":3}},{"ok":true,"result":{"/a~1b/0":[],"/a~1b/1":{},"/a~1b/2":null,"/x":null,"/~0/":4}},... | data | main.py | json_flatten | python | 148 | 13 | # Json Flatten — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIREC... | 1.0 | [{"request":{"input":{"value":{"a":[1,{"x/y":null}],"b":{}}},"op":"solve"},"response":{"ok":true,"result":{"/a/0":1,"/a/1/x~1y":null,"/b":{}}}},{"request":{"input":{"value":[]},"op":"solve"},"response":{"ok":true,"result":{"":[]}}}] | hard | 16–32B | kcb-hard-015-json-flatten | 10 | Json Flatten — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"x":{"v":7},"~":{"":2}}},{"ok":true,"result":{"a/b":[1],"x":{"v":3},"~":{"":4}}},{"ok":true,"result":{"a/b":{"z":2},"x":{"v":5},"~":{"":5}}},{"ok":true,"result":{"a/b":{"z":2},"x":{"v":8},"~":{"":0}}},{"ok":true,"result":{"a/b":{"z":2},"x":{"v":6... | data | main.py | merge_patch | python | 150 | 13 | # Merge Patch — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECT... | 1.0 | [{"request":{"input":{"patch":{"a":null,"b":{"c":9}},"target":{"a":1,"b":{"c":2,"d":3}}},"op":"solve"},"response":{"ok":true,"result":{"b":{"c":9,"d":3}}}},{"request":{"input":{"patch":null,"target":{}},"op":"solve"},"response":{"ok":true,"result":null}}] | hard | 16–32B | kcb-hard-016-merge-patch | 10 | Merge Patch — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"found":false,"value":null}},{"ok":true,"result":{"found":true,"value":{"a/b":[[-8,-2,8,7,2,3,6,-9],{},null],"x":null,"~":{"":7}}}},{"ok":true,"result":{"found":true,"value":6}},{"ok":true,"result":{"found":true,"value":6}},{"ok":true,"result":{"... | data | main.py | json_pointer | python | 151 | 13 | # Json Pointer — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIREC... | 1.0 | [{"request":{"input":{"pointer":"/a~1b/0","value":{"a/b":[7]}},"op":"solve"},"response":{"ok":true,"result":{"found":true,"value":7}}},{"request":{"input":{"pointer":"","value":null},"op":"solve"},"response":{"ok":true,"result":{"found":true,"value":null}}}] | hard | 16–32B | kcb-hard-017-json-pointer | 10 | Json Pointer — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"a":2,"b":2},{"a":2,"b":"x"},{"a":1},{"a":"x"}]},{"ok":true,"result":[{"a":2,"b":null},{}]},{"ok":true,"result":[{"a":2,"b":2},{"a":null,"b":2},{"a":"x","b":"x"},{"a":1,"b":2}]},{"ok":true,"result":[]},{"ok":true,"result":[{"a":1,"b":1},{"a":1},... | data | main.py | dedupe_records | python | 149 | 13 | # Dedupe Records — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIR... | 1.0 | [{"request":{"input":{"keys":["id"],"rows":[{"id":1,"x":"a"},{"id":1,"x":"b"},{"id":2}]},"op":"solve"},"response":{"ok":true,"result":[{"id":1,"x":"a"},{"id":2}]}},{"request":{"input":{"keys":[],"rows":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-018-dedupe-records | 10 | Dedupe Records — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"columns":["x","y"],"rows":["","a","b"],"values":[[-2,-2],[0,-8],[-2,7]]}},{"ok":true,"result":{"columns":["x","y"],"rows":["","a"],"values":[[0,-3],[4,2]]}},{"ok":true,"result":{"columns":["x","y"],"rows":["a"],"values":[[0,-3]]}},{"ok":true,"re... | data | main.py | pivot_table | python | 150 | 13 | # Pivot Table — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECT... | 1.0 | [{"request":{"input":{"column":"c","row":"r","rows":[{"c":"x","r":"a","v":2},{"c":"y","r":"b","v":3},{"c":"x","r":"a","v":-1}],"value":"v"},"op":"solve"},"response":{"ok":true,"result":{"columns":["x","y"],"rows":["a","b"],"values":[[1,0],[0,3]]}}},{"request":{"input":{"column":"c","row":"r","rows":[],"value":"v"},"op"... | hard | 16–32B | kcb-hard-019-pivot-table | 10 | Pivot Table — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[{"error":"type","field":"a"},{"error":"required","field":"c"}]},{"ok":true,"result":[{"error":"type","field":"a"},{"error":"required","field":"b"}]},{"ok":true,"result":[{"error":"type","field":"b"},{"error":"required","field":"c"}]},{"ok":true,"... | data | main.py | schema_check | python | 149 | 13 | # Schema Check — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIREC... | 1.0 | [{"request":{"input":{"schema":{"a":{"required":true,"type":"integer"},"b":{"required":true,"type":"string"}},"value":{"a":true}},"op":"solve"},"response":{"ok":true,"result":[{"error":"type","field":"a"},{"error":"required","field":"b"}]}},{"request":{"input":{"schema":{},"value":{"a":1}},"op":"solve"},"response":{"ok... | hard | 16–32B | kcb-hard-020-schema-check | 10 | Schema Check — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[[-6,8]]},{"ok":true,"result":[[-7,10]]},{"ok":true,"result":[[-7,6]]},{"ok":true,"result":[[-6,-2],[-1,3]]},{"ok":true,"result":[[-10,10]]},{"ok":true,"result":[[3,5]]},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":[[-6,9]]}... | intervals | main.py | interval_union | python | 148 | 13 | # Interval Union — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIR... | 1.0 | [{"request":{"input":{"intervals":[[5,7],[1,3],[3,6],[9,9]]},"op":"solve"},"response":{"ok":true,"result":[[1,7],[9,9]]}},{"request":{"input":{"intervals":[]},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-021-interval-union | 10 | Interval Union — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":[[-5,-2]]},{"ok":true,"result":[[-4,0]]},{"ok":true,"result":[[-5,5]]},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":true,"result":[]},{"ok":tr... | intervals | main.py | interval_gaps | python | 150 | 13 | # Interval Gaps — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRE... | 1.0 | [{"request":{"input":{"bounds":[0,10],"intervals":[[2,4],[6,9]]},"op":"solve"},"response":{"ok":true,"result":[[0,2],[4,6],[9,10]]}},{"request":{"input":{"bounds":[0,5],"intervals":[]},"op":"solve"},"response":{"ok":true,"result":[[0,5]]}}] | hard | 16–32B | kcb-hard-022-interval-gaps | 10 | Interval Gaps — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"at":-6,"peak":3}},{"ok":true,"result":{"at":-5,"peak":3}},{"ok":true,"result":{"at":-9,"peak":1}},{"ok":true,"result":{"at":-2,"peak":3}},{"ok":true,"result":{"at":-7,"peak":3}},{"ok":true,"result":{"at":-7,"peak":2}},{"ok":true,"result":{"at":-... | intervals | main.py | booking_peak | python | 148 | 13 | # Booking Peak — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIREC... | 1.0 | [{"request":{"input":{"bookings":[[1,4],[2,3],[3,5]]},"op":"solve"},"response":{"ok":true,"result":{"at":2,"peak":2}}},{"request":{"input":{"bookings":[]},"op":"solve"},"response":{"ok":true,"result":{"at":null,"peak":0}}}] | hard | 16–32B | kcb-hard-023-booking-peak | 10 | Booking Peak — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":["2018-12-03","2018-12-04","2018-12-06","2018-12-07","2018-12-11","2018-12-12"]},{"ok":true,"result":["2006-09-18","2006-09-19","2006-09-20","2006-09-21","2006-09-22","2006-09-25","2006-09-26","2006-09-27","2006-09-28","2006-09-29","2006-10-02","2... | calendar | main.py | business_days | python | 150 | 13 | # Business Days — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRE... | 1.0 | [{"request":{"input":{"end":"2024-03-04","holidays":["2024-02-29"],"start":"2024-02-28"},"op":"solve"},"response":{"ok":true,"result":["2024-02-28","2024-03-01"]}},{"request":{"input":{"end":"2024-01-01","holidays":[],"start":"2024-01-01"},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-024-business-days | 10 | Business Days — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[[0,0,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,0,0,0]]},{"ok":true,"result":[[0,0,0,0,0,0,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,0,0,0,0,0]]},{"... | calendar | main.py | calendar_month | python | 149 | 13 | # Calendar Month — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIR... | 1.0 | [{"request":{"input":{"month":2,"year":2021},"op":"solve"},"response":{"ok":true,"result":[[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]]}},{"request":{"input":{"month":2,"year":2024},"op":"solve"},"response":{"ok":true,"result":[[0,0,0,1,2,3,4],[5,6,7,8,9,10,11],[12,13,14,15,16,17,... | hard | 16–32B | kcb-hard-025-calendar-month | 10 | Calendar Month — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[1.4285714285714286,-0.14285714285714285,1.2857142857142858,0.8571428571428571]},{"ok":true,"result":[-1.1428571428571428]},{"ok":true,"result":[0.5,-0.3333333333333333,0.16666666666666666,1.3333333333333333,2.0]},{"ok":true,"result":[]},{"ok":tru... | numeric | main.py | moving_average | python | 150 | 13 | # Moving Average — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIR... | 1.0 | [{"request":{"input":{"values":[1,2,3,4],"window":2},"op":"solve"},"response":{"ok":true,"result":[1.5,2.5,3.5]}},{"request":{"input":{"values":[],"window":1},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-026-moving-average | 10 | Moving Average — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"count":4,"max":9,"mean":2,"median":3.0,"min":-7,"variance":45.5}},{"ok":true,"result":{"count":9,"max":6,"mean":0,"median":1,"min":-6,"variance":16.88888888888889}},{"ok":true,"result":{"count":9,"max":1,"mean":-4.666666666666667,"median":-8,"mi... | numeric | main.py | statistics | python | 149 | 13 | # Statistics — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTO... | 1.0 | [{"request":{"input":{"values":[1,2,3,4]},"op":"solve"},"response":{"ok":true,"result":{"count":4,"max":4,"mean":2.5,"median":2.5,"min":1,"variance":1.25}}},{"request":{"input":{"values":[]},"op":"solve"},"response":{"ok":true,"result":{"count":0,"max":null,"mean":null,"median":null,"min":null,"variance":null}}}] | hard | 16–32B | kcb-hard-027-statistics | 10 | Statistics — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"counts":[0,1,0,0],"overflow":1,"underflow":0}},{"ok":true,"result":{"counts":[1,0,0,3],"overflow":1,"underflow":0}},{"ok":true,"result":{"counts":[0,1,3,4],"overflow":2,"underflow":0}},{"ok":true,"result":{"counts":[1,0,3,1],"overflow":3,"underf... | numeric | main.py | histogram | python | 149 | 13 | # Histogram — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTOR... | 1.0 | [{"request":{"input":{"edges":[0,1,3],"values":[-1,0,1,2,3]},"op":"solve"},"response":{"ok":true,"result":{"counts":[1,2],"overflow":1,"underflow":1}}},{"request":{"input":{"edges":[0,1],"values":[]},"op":"solve"},"response":{"ok":true,"result":{"counts":[0],"overflow":0,"underflow":0}}}] | hard | 16–32B | kcb-hard-028-histogram | 10 | Histogram — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[[-13,0,-9],[1,-8,-3],[-7,-9,-9]]},{"ok":true,"result":[[3,-2],[-12,8]]},{"ok":true,"result":[[8,4,-2],[-8,4,14]]},{"ok":true,"result":[[-12,-12]]},{"ok":true,"result":[[4,-2,8],[6,-3,12],[-8,4,-16]]},{"ok":true,"result":[[0,0]]},{"ok":true,"resul... | numeric | main.py | matrix_product | python | 149 | 13 | # Matrix Product — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIR... | 1.0 | [{"request":{"input":{"a":[[1,2],[3,4]],"b":[[5],[6]]},"op":"solve"},"response":{"ok":true,"result":[[17],[39]]}},{"request":{"input":{"a":[[0]],"b":[[9]]},"op":"solve"},"response":{"ok":true,"result":[[0]]}}] | hard | 16–32B | kcb-hard-029-matrix-product | 10 | Matrix Product — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[1554,-10969,-576294,-411,6,-22,60381,-32382]},{"ok":true,"result":[0,0,0,0,0,0,0,0,0,0,0]},{"ok":true,"result":[1088,18788803,18788803,-2,17177291,916]},{"ok":true,"result":[]},{"ok":true,"result":[15689]},{"ok":true,"result":[37052,314808098,314... | numeric | main.py | polynomial | python | 149 | 13 | # Polynomial — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECTO... | 1.0 | [{"request":{"input":{"coefficients":[1,2,3],"points":[0,1,-1,2]},"op":"solve"},"response":{"ok":true,"result":[1,6,2,17]}},{"request":{"input":{"coefficients":[],"points":[1,0]},"op":"solve"},"response":{"ok":true,"result":[0,0]}}] | hard | 16–32B | kcb-hard-030-polynomial | 10 | Polynomial — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[[2,1],[23,1],[1163,1]]},{"ok":true,"result":[[13,1],[4013,1]]},{"ok":true,"result":[[2,1],[47977,1]]},{"ok":true,"result":[[89,1],[331,1]]},{"ok":true,"result":[[2,1],[11,1],[3571,1]]},{"ok":true,"result":[[2,2],[4007,1]]},{"ok":true,"result":[[8... | numeric | main.py | prime_factors | python | 149 | 13 | # Prime Factors — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRE... | 1.0 | [{"request":{"input":{"number":360},"op":"solve"},"response":{"ok":true,"result":[[2,3],[3,2],[5,1]]}},{"request":{"input":{"number":1},"op":"solve"},"response":{"ok":true,"result":[]}}] | hard | 16–32B | kcb-hard-031-prime-factors | 10 | Prime Factors — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":"6d1pen8hdj3fk1"},{"ok":true,"result":"3ealh5jd7l2c7cfd"},{"ok":true,"result":"2dgctdcfmso6tck"},{"ok":true,"result":"ab3bgdklqjf2lcj"},{"ok":true,"result":"j3a7ja7bjf3bhb4j"},{"ok":true,"result":"-28g4f7572f1498be6"},{"ok":true,"result":"-6843daj... | numeric | main.py | base_convert | python | 151 | 13 | # Base Convert — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIREC... | 1.0 | [{"request":{"input":{"digits":"ff","from_base":16,"to_base":2},"op":"solve"},"response":{"ok":true,"result":"11111111"}},{"request":{"input":{"digits":"-0","from_base":10,"to_base":36},"op":"solve"},"response":{"ok":true,"result":"0"}}] | hard | 16–32B | kcb-hard-032-base-convert | 10 | Base Convert — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":[62,250,0,353,0,187,208]},{"ok":true,"result":[2143,2263]},{"ok":true,"result":[1537,1384,2614,769,2460]},{"ok":true,"result":[328,821,739,739]},{"ok":true,"result":[90,255,165,270,150,225,165,30]},{"ok":true,"result":[1155,425,729,1155,486,365,61... | numeric | main.py | money_split | python | 150 | 13 | # Money Split — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECT... | 1.0 | [{"request":{"input":{"amount":10,"weights":[1,1,1]},"op":"solve"},"response":{"ok":true,"result":[4,3,3]}},{"request":{"input":{"amount":0,"weights":[1]},"op":"solve"},"response":{"ok":true,"result":[0]}}] | hard | 16–32B | kcb-hard-033-money-split | 10 | Money Split — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":{"subtotal":"1035.04","tax":"77.63","total":"1112.67"}},{"ok":true,"result":{"subtotal":"1136.66","tax":"227.33","total":"1363.99"}},{"ok":true,"result":{"subtotal":"1809.53","tax":"361.91","total":"2171.44"}},{"ok":true,"result":{"subtotal":"2296... | numeric | main.py | invoice_total | python | 149 | 13 | # Invoice Total — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRE... | 1.0 | [{"request":{"input":{"items":[{"price":"0.335","quantity":3}],"tax_rate":"0.20"},"op":"solve"},"response":{"ok":true,"result":{"subtotal":"1.01","tax":"0.20","total":"1.21"}}},{"request":{"input":{"items":[],"tax_rate":"0"},"op":"solve"},"response":{"ok":true,"result":{"subtotal":"0.00","tax":"0.00","total":"0.00"}}}] | hard | 16–32B | kcb-hard-034-invoice-total | 10 | Invoice Total — transactional service |
[{"name":"generated-domain","sessions":[{"expected":[{"ok":true,"result":3},{"ok":true,"result":null},{"ok":true,"result":null},{"ok":true,"result":6},{"ok":true,"result":null},{"ok":true,"result":null},{"ok":true,"result":2},{"ok":true,"result":3},{"ok":true,"result":9},{"ok":true,"result":11},{"ok":true,"result":7},{... | numeric | main.py | coin_change | python | 150 | 13 | # Coin Change — transactional service
Build a complete project from an EMPTY directory, using Python 3.11+ and only the standard library. Create main.py as the entry point; any number of supporting files is allowed. No starter implementation is provided.
Run: python main.py (max-tier invocation adds --state-dir DIRECT... | 1.0 | [{"request":{"input":{"amount":6,"coins":[1,3,4]},"op":"solve"},"response":{"ok":true,"result":2}},{"request":{"input":{"amount":0,"coins":[]},"op":"solve"},"response":{"ok":true,"result":0}}] | hard | 16–32B | kcb-hard-035-coin-change | 10 | Coin Change — transactional service |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.