In response to Issue #2732 (Optional)

This simply clarifies the description for the find all valid math expressions in response to issue #2732 
https://github.com/danielyxie/bitburner/issues/2732
This commit is contained in:
zeddrak 2022-01-22 21:00:28 -08:00 committed by GitHub
parent 07fe3c1906
commit 57a1bef967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -916,8 +916,8 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
"You are given the following string which contains only digits between 0 and 9:\n\n", "You are given the following string which contains only digits between 0 and 9:\n\n",
`${digits}\n\n`, `${digits}\n\n`,
`You are also given a target number of ${target}. Return all possible ways`, `You are also given a target number of ${target}. Return all possible ways`,
"you can add the +, -, and * operators to the string such that it evaluates", "you can add the +(add), -(subtract), and *(multiply) operators to the string such",
"to the target number.\n\n", "that it evaluates to the target number. (Normal order of operations applies.)\n\n",
"The provided answer should be an array of strings containing the valid expressions.", "The provided answer should be an array of strings containing the valid expressions.",
"The data provided by this problem is an array with two elements. The first element", "The data provided by this problem is an array with two elements. The first element",
"is the string of digits, while the second element is the target number:\n\n", "is the string of digits, while the second element is the target number:\n\n",
@ -949,7 +949,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
return [digits, target]; return [digits, target];
}, },
name: "Find All Valid Math Expressions", name: "c",
numTries: 10, numTries: 10,
solver: (data: any[], ans: string): boolean => { solver: (data: any[], ans: string): boolean => {
const num: string = data[0]; const num: string = data[0];