Provide number theory algorithm implementations and guidance
Provide implementations and guidance for number theory algorithms commonly used in competitive programming.
{
"type": "object",
"properties": {
"algorithm": { "type": "string" },
"parameters": { "type": "object" },
"language": {
"type": "string",
"enum": ["cpp", "python", "java"]
},
"modulo": { "type": "integer" }
},
"required": ["algorithm"]
}
{
"type": "object",
"properties": {
"success": { "type": "boolean" },
"code": { "type": "string" },
"explanation": { "type": "string" },
"complexity": { "type": "string" }
},
"required": ["success"]
}