mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 05:05:47 +01:00
CCT: Clarify empty string solution in UI (#1400)
This commit is contained in:
parent
7a39a93fa9
commit
4382f860db
@ -339,7 +339,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
|||||||
"\n\nAssuming you are initially positioned",
|
"\n\nAssuming you are initially positioned",
|
||||||
"at the start of the array, determine whether you are",
|
"at the start of the array, determine whether you are",
|
||||||
"able to reach the last index.\n\n",
|
"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(" ");
|
].join(" ");
|
||||||
},
|
},
|
||||||
difficulty: 2.5,
|
difficulty: 2.5,
|
||||||
@ -561,7 +561,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
|||||||
"Determine the maximum possible profit you can earn using at most",
|
"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",
|
"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",
|
"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(" ");
|
].join(" ");
|
||||||
},
|
},
|
||||||
difficulty: 1,
|
difficulty: 1,
|
||||||
@ -601,7 +601,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
|||||||
"and then selling one share of the stock. Note that you cannot",
|
"and then selling one share of the stock. Note that you cannot",
|
||||||
"engage in multiple transactions at once. In other words, you",
|
"engage in multiple transactions at once. In other words, you",
|
||||||
"must sell the stock before you buy it again.\n\n",
|
"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(" ");
|
].join(" ");
|
||||||
},
|
},
|
||||||
difficulty: 2,
|
difficulty: 2,
|
||||||
@ -639,7 +639,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
|||||||
"and then selling one share of the stock. Note that you cannot",
|
"and then selling one share of the stock. Note that you cannot",
|
||||||
"engage in multiple transactions at once. In other words, you",
|
"engage in multiple transactions at once. In other words, you",
|
||||||
"must sell the stock before you buy it again.\n\n",
|
"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(" ");
|
].join(" ");
|
||||||
},
|
},
|
||||||
difficulty: 5,
|
difficulty: 5,
|
||||||
@ -954,7 +954,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
|||||||
" [[0,1],\n",
|
" [[0,1],\n",
|
||||||
" [1,0]]\n",
|
" [1,0]]\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Answer: ''\n\n",
|
"Answer: ''",
|
||||||
].join(" ");
|
].join(" ");
|
||||||
},
|
},
|
||||||
difficulty: 7,
|
difficulty: 7,
|
||||||
@ -1535,7 +1535,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
|||||||
" aaaaabccc -> 5a1b3c\n",
|
" aaaaabccc -> 5a1b3c\n",
|
||||||
" aAaAaA -> 1a1A1a1A1a1A\n",
|
" aAaAaA -> 1a1A1a1A1a1A\n",
|
||||||
" 111112333 -> 511233\n",
|
" 111112333 -> 511233\n",
|
||||||
" zzzzzzzzzzzzzzzzzzz -> 9z9z1z (or 9z8z2z, etc.)\n",
|
" zzzzzzzzzzzzzzzzzzz -> 9z9z1z (or 9z8z2z, etc.)",
|
||||||
].join(" ");
|
].join(" ");
|
||||||
},
|
},
|
||||||
gen: (): string => {
|
gen: (): string => {
|
||||||
|
@ -68,6 +68,10 @@ export function CodingContractModal(): React.ReactElement {
|
|||||||
<br />
|
<br />
|
||||||
<Typography>{description}</Typography>
|
<Typography>{description}</Typography>
|
||||||
<br />
|
<br />
|
||||||
|
<Typography>
|
||||||
|
If your solution is an empty string, you must leave the text box empty. Do not use "", '', or ``.
|
||||||
|
</Typography>
|
||||||
|
<br />
|
||||||
<TextField
|
<TextField
|
||||||
autoFocus
|
autoFocus
|
||||||
placeholder="Enter Solution here"
|
placeholder="Enter Solution here"
|
||||||
|
Loading…
Reference in New Issue
Block a user