This repository was archived by the owner on Jun 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
competition/unclosed-brackets Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ difficulty = 1
1616Given a snippet of C with unclosed curly braces (` {} ` ), determine the index of the first unclosed opening curly brace.
1717
1818## Output Format
19- Your output should be the index of the first unclosed opening curly brace.
19+ Your output should be the index (with the first character being index 0) of the first unclosed opening curly brace.
Original file line number Diff line number Diff line change @@ -127,12 +127,9 @@ fn run(seed: u64, method: &str) {
127127 } ;
128128
129129 match method {
130- // If `fuzz`-ing, just output the prompt.
131130 "generate" => {
132131 println ! ( "{}" , src) ;
133132 }
134- // If `judge`-ing, to maintain fairness, we take the prompt rather than the tree
135- // and rebuild a tree from that, then match the input against the prefix notation.
136133 "validate" => {
137134 // Reads from user input.
138135 let mut buffer = String :: new ( ) ;
@@ -147,8 +144,6 @@ fn run(seed: u64, method: &str) {
147144 exit ( 1 ) ;
148145 }
149146 }
150- // In this case, there is only one "correct" answer.
151- // In debugging, this can be directly outputted.
152147 "solution" => {
153148 println ! ( "{}" , solution) ;
154149 }
You can’t perform that action at this time.
0 commit comments