mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-19 07:48:37 +02:00
Merge pull request #1157 from threehams/faster-builds
Switch ts and babel for swc-loader
This commit is contained in:
@@ -575,8 +575,8 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
||||
},
|
||||
{
|
||||
desc: (data: any[]): string => {
|
||||
const k: number = <number>data[0];
|
||||
const prices: number[] = <number[]>data[1];
|
||||
const k: number = data[0];
|
||||
const prices: number[] = data[1];
|
||||
return [
|
||||
"You are given the following array with two elements:\n\n",
|
||||
`[${k}, [${prices}]]\n\n`,
|
||||
@@ -606,8 +606,8 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
||||
name: "Algorithmic Stock Trader IV",
|
||||
numTries: 10,
|
||||
solver: (data: any[], ans: string): boolean => {
|
||||
const k: number = <number>data[0];
|
||||
const prices: number[] = <number[]>data[1];
|
||||
const k: number = data[0];
|
||||
const prices: number[] = data[1];
|
||||
|
||||
const len = prices.length;
|
||||
if (len < 2) {
|
||||
|
||||
Reference in New Issue
Block a user