Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit ed6521a

Browse files
committed
fix: clarify brackets
1 parent fd09182 commit ed6521a

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

competition/unclosed-brackets/prob.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ difficulty = 1
1616
Given 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.

competition/unclosed-brackets/src/main.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)