This commit is contained in:
Olivier Gagnon
2021-11-03 00:27:21 -04:00
parent 37845c57c0
commit 2b79871c02
299 changed files with 3861 additions and 7125 deletions
+7 -5
View File
@@ -4,21 +4,21 @@
## CodingContract.attempt() method
Attempts to solve the Coding Contract with the provided solution.
Attemps a coding contract.
<b>Signature:</b>
```typescript
attempt(answer: string | string[] | number, fn: string, host?: string): boolean;
attempt(answer: string[] | number, fn: string, host?: string): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| answer | string \| string\[\] \| number | Solution for the contract. |
| answer | string\[\] \| number | Solution for the contract. |
| fn | string | Filename of the contract. |
| host | string | Host or IP of the server containing the contract. Optional. Defaults to current server if not provided. |
| host | string | Host of the server containing the contract. Optional. Defaults to current server if not provided. |
<b>Returns:</b>
@@ -28,5 +28,7 @@ True if the solution was correct, false otherwise.
## Remarks
10 GB
RAM cost: 10 GB
Attempts to solve the Coding Contract with the provided solution.