Merge pull request #1157 from threehams/faster-builds

Switch ts and babel for swc-loader
This commit is contained in:
hydroflame
2021-09-04 20:05:51 -04:00
committed by GitHub
12 changed files with 1085 additions and 902 deletions
+4 -4
View File
@@ -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) {