mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 13:15:48 +01:00
Revert "MISC: HammingCodingContracts need rework"
This commit is contained in:
parent
0d7276b76f
commit
b49b5ba269
@ -1,7 +1,7 @@
|
|||||||
import { getRandomInt } from "../utils/helpers/getRandomInt";
|
import { getRandomInt } from "../utils/helpers/getRandomInt";
|
||||||
import { MinHeap } from "../utils/Heap";
|
import { MinHeap } from "../utils/Heap";
|
||||||
|
|
||||||
// import { HammingEncode, HammingDecode } from "../utils/HammingCodeTools";
|
import { HammingEncode, HammingDecode } from "../utils/HammingCodeTools";
|
||||||
/* tslint:disable:completed-docs no-magic-numbers arrow-return-shorthand */
|
/* tslint:disable:completed-docs no-magic-numbers arrow-return-shorthand */
|
||||||
|
|
||||||
/* Function that generates a valid 'data' for a contract type */
|
/* Function that generates a valid 'data' for a contract type */
|
||||||
@ -1247,7 +1247,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
} /*
|
},
|
||||||
{
|
{
|
||||||
name: "HammingCodes: Integer to encoded Binary",
|
name: "HammingCodes: Integer to encoded Binary",
|
||||||
numTries: 10,
|
numTries: 10,
|
||||||
@ -1305,5 +1305,5 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
|||||||
solver: (data: string, ans: string): boolean => {
|
solver: (data: string, ans: string): boolean => {
|
||||||
return parseInt(ans, 10) === HammingDecode(data);
|
return parseInt(ans, 10) === HammingDecode(data);
|
||||||
},
|
},
|
||||||
},*/,
|
},
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user