Spaces:
Runtime error
Runtime error
File size: 348 Bytes
e3ee9bf 6a07611 e3ee9bf 6a07611 e3ee9bf 6a07611 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import json
import os
def run_lc_sync(mode):
# Your LeetCode logic here...
output_filename = f"lc_{mode}_data.json"
# Dummy data for example
data = {"status": "success", "mode": mode, "problems": []}
with open(output_filename, "w") as f:
json.dump(data, f)
return os.path.abspath(output_filename) |