Learn about using APIs to execute DSA coding labs
Platform | Cost per Submission | Rate limits |
---|---|---|
Judge0 | $1 per 1,000 submissions | Unknown |
Fermion DSA API | $1 per 5,000 submissions | 10,000 requests per second |
db.sqlite
file:
callbackUrlOnExecutionCompletion
parameter in your runConfig
. This
webhook URL will receive a POST request with the execution results
immediately when processing completes, eliminating the need for repeated
polling and providing faster response times.
callbackUrlOnExecutionCompletion
in
your execution requestPending
: Task is queued for executionProcessing
: Task is currently being executedFinished
: Task execution completedsuccessful
: Code executed successfullycompilation-error
: Code failed to compiletime-limit-exceeded
: Execution exceeded time limitwrong-answer
: Output doesn’t match expected resultnon-zero-exit-code
: Program exited with non-zero codedied-sigsev
: Segmentation faultdied-sigxfsz
: File size limit exceededdied-sigfpe
: Floating point exceptiondied-sigabrt
: Program abortedinternal-isolate-error
: Internal system errorunknown
: Unknown error occurred+
with -
(dash)/
with _
(underscore)=
characterssourceCodeAsBase64UrlEncoded
- Your source codeexpectedOutputAsBase64UrlEncoded
- Expected program outputstdinStringAsBase64UrlEncoded
- Input data for the programbase64UrlEncodedZip
- ZIP file contents for SQLitestdoutBase64UrlEncoded
- Program output (in responses)stderrBase64UrlEncoded
- Error output (in responses)status
field in the response and handle errors appropriately in your application.