-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolved comments, multi problems code assessment
- Loading branch information
Showing
8 changed files
with
99 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
{ | ||
"version": 1.0, | ||
"name": "Experiment Name", | ||
"inputs": [ | ||
[1,2,3] | ||
], | ||
"expected": "1,2,3" | ||
} | ||
"version": 1, | ||
"experiment name": "Experiment Name", | ||
"problems": [ | ||
{ | ||
"problem name": "Basic Bubble Sort", | ||
"description": "Implement basic Bubble Sort algorithm for the given input array", | ||
"inputs": [ | ||
[64,66,20,49,11,79] | ||
], | ||
"expected": ["11,20,49,64,66,79"] | ||
}, | ||
{ | ||
"problem name": "Optimized Bubble Sort", | ||
"description": "Implement Optimized Bubble Sort algorithm for the given input array", | ||
"inputs": [ | ||
[64,66,20,49,11,79] | ||
], | ||
"expected": ["11,20,49,64,66,79"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
module.exports = { | ||
$schema: "http://json-schema.org/draft-07/schema#", | ||
$id: "https://virtual.labs/schemas/code-assessment.json", | ||
type: "object", | ||
properties: { | ||
"version": { | ||
type: "integer", | ||
enum: [1.0], | ||
errorMessage: "Version should be 1.0", | ||
}, | ||
}, | ||
required: ['version'], | ||
if: { properties: { version: { const: 1.0 } }, required: ["version"] }, | ||
then: { | ||
properties: { | ||
"experiment name": { | ||
type: "string", | ||
errorMessage: { | ||
type: "The experiment name should be a string", | ||
}, | ||
}, | ||
"problems": { | ||
type: "array", | ||
items: { | ||
type: "object", | ||
properties: { | ||
"problem name": { | ||
type: "string", | ||
errorMessage: { | ||
type: "The problem name should be a string", | ||
}, | ||
}, | ||
"description": { | ||
type: "string", | ||
errorMessage: { | ||
type: "The description should be a string", | ||
}, | ||
}, | ||
"inputs": { | ||
type: "array", | ||
errorMessage: { | ||
type: "The inputs should be an array", | ||
}, | ||
}, | ||
"expected": { | ||
type: "array", | ||
errorMessage: { | ||
type: "The expected should be an array", | ||
}, | ||
} | ||
}, | ||
required: ["problem name", "description", "inputs", "expected"], | ||
errorMessage: { | ||
required: { | ||
"problem name": "The name of the problem field is required", | ||
"description": "The description is required", | ||
"inputs": "The inputs field is required", | ||
"expected": "The expected field is required" | ||
} | ||
}, | ||
}, | ||
errorMessage: { | ||
type: "The problems must be an array", | ||
}, | ||
} | ||
}, | ||
required: ["experiment name", "problems"], | ||
errorMessage: { | ||
required: { | ||
name: "The name of the experiment field is required", | ||
problems: "The problems field is required", | ||
} | ||
}, | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.