Content deleted Content added
Enervation (talk | contribs) Add templatedata, document space complexity as as auxiliary per talk page, add links to time complexity and space complexity |
Enervation (talk | contribs) Edit templatedata |
||
Line 35:
<templatedata>
{
"default": "{{PAGENAMEBASE}}",
},▼
"autovalue": "{{PAGENAMEBASE}}",
"class": {▼
"label": "Problem class",▼
"description": "Type of problem it solves (e.g., sorting)",▼
"type": "content",▼
▲ "required": true
},▼
"type": "content"▼
"example": "Sorting",
"suggested": true
"type": "content"▼
"label": "Data structure",▼
"label": "Image"
"description": "Data structure it operates on (e.g., array)",▼
"type": "content"▼
"caption": {
"description": "Worst-case time complexity in big O notation",▼
"data": {
▲ "required": true
▲ },
"best-time": {▼
"example": "Array"
"label": "Best-case time complexity",▼
"time": {
▲ },
"average-time": {▼
"required": true,
▲ },
},
"label": "Worst-case space complexity",▼
"description": "If not specified, this should be auxiliary space complexity and not include the space needed for the input",▼
"label": "Average time complexity",
},
"space": {
"required": true,
▲
"suggested": true
},
"alt": {
"label": "Alt text",
"description": "Alt text for image",
"type": "string"
},
"size": {
"aliases": [
"image size",
"imagesize",
"image_size"
],
"label": "Image size"
}
},
"paramOrder": [
"name",
"class",
"image",
"size",
"caption",
"data",
"time",
"average-time",
"space",
"alt"
]
}
</templatedata>
|