Skip to content

Commit

Permalink
CCT: Clarify empty string solution in UI (bitburner-official#1400)
Browse files Browse the repository at this point in the history
  • Loading branch information
catloversg authored Jun 15, 2024
1 parent 7a39a93 commit 4382f86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/data/codingcontracttypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
"\n\nAssuming you are initially positioned",
"at the start of the array, determine whether you are",
"able to reach the last index.\n\n",
"Your answer should be submitted as 1 or 0, representing true and false respectively",
"Your answer should be submitted as 1 or 0, representing true and false respectively.",
].join(" ");
},
difficulty: 2.5,
Expand Down Expand Up @@ -561,7 +561,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
"Determine the maximum possible profit you can earn using at most",
"one transaction (i.e. you can only buy and sell the stock once). If no profit can be made",
"then the answer should be 0. Note",
"that you have to buy the stock before you can sell it",
"that you have to buy the stock before you can sell it.",
].join(" ");
},
difficulty: 1,
Expand Down Expand Up @@ -601,7 +601,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
"and then selling one share of the stock. Note that you cannot",
"engage in multiple transactions at once. In other words, you",
"must sell the stock before you buy it again.\n\n",
"If no profit can be made, then the answer should be 0",
"If no profit can be made, then the answer should be 0.",
].join(" ");
},
difficulty: 2,
Expand Down Expand Up @@ -639,7 +639,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
"and then selling one share of the stock. Note that you cannot",
"engage in multiple transactions at once. In other words, you",
"must sell the stock before you buy it again.\n\n",
"If no profit can be made, then the answer should be 0",
"If no profit can be made, then the answer should be 0.",
].join(" ");
},
difficulty: 5,
Expand Down Expand Up @@ -954,7 +954,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
"    [[0,1],\n",
"     [1,0]]\n",
"\n",
"Answer: ''\n\n",
"Answer: ''",
].join(" ");
},
difficulty: 7,
Expand Down Expand Up @@ -1535,7 +1535,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
"    aaaaabccc            ->  5a1b3c\n",
"    aAaAaA               ->  1a1A1a1A1a1A\n",
"    111112333            ->  511233\n",
"    zzzzzzzzzzzzzzzzzzz  ->  9z9z1z  (or 9z8z2z, etc.)\n",
"    zzzzzzzzzzzzzzzzzzz  ->  9z9z1z  (or 9z8z2z, etc.)",
].join(" ");
},
gen: (): string => {
Expand Down
4 changes: 4 additions & 0 deletions src/ui/React/CodingContractModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ export function CodingContractModal(): React.ReactElement {
<br />
<Typography>{description}</Typography>
<br />
<Typography>
If your solution is an empty string, you must leave the text box empty. Do not use "", '', or ``.
</Typography>
<br />
<TextField
autoFocus
placeholder="Enter Solution here"
Expand Down

0 comments on commit 4382f86

Please sign in to comment.