Skip to content

JSON standard unit format (proposal) #8

Description

@Technici4n

Hi,

I propose to have a JSON file for each unit, with standard format. This would allow me to easily (and dynamically) show problems by unit for every contestant on the beoi-training website... It could also be used to create the README.md files in a standardized way, but that's not the main purpose.

Here is my (personal) suggestion (I picked the unit 7 as example):

{
	"unit": 7,
	"title": "Union Find Disjoint Sets",
	"description": "This unit covers the Union-Find data structure for disjoint sets\n\nComplementary notes can be found in section 2.4.2 of the book Competitive Programming 3.",
	"short_description": "",
	"presentation": "union-find.pdf",
	"prerequisites": [1, 2, 4],
	"problems":
	[
		["uva", 793, "recommended as beginning exercise"],
		["uva", 10158, "a bit more challenging"],
		["uva", 10583, "recommended as beginning exercise"],
		["uva", 10608],
		["uva", 11503],
		["uva", 11690],
		["codeforces", "278C"],
		["codeforces", "722C"]
	]
}

This should be enough to create the main README.md with all titles and short descriptions, and a README.md and links to all problems and to the main pdf (That's a lot of "and")...

I can write all the scripts without any problem, but I'll use Ruby then. :-)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions