Back to General discussions forum
I suggest having a secret API key for each user, (to avoid OAuth) and having an open API where we can obtain the testcase (with maybe a sessionid) from the api by providing the taskid and then submit answers using the api.
Would let you write new kinds of problem with a time sensitive deadlines. :) (like the Binary Search one, without the manual copy-paste)
Hi! thanks for suggestion!
I thought of it some time ago because there is one special advantage of this idea: it will allow to create problems which are to be solved in several steps.
These may be some turn-based games, simulations etc - so user's program fetches initial data, submits its first move, receives updated data, submits next move etc...
Main reason for this functionality still not exist is that I do not know how many people will use it. :)
However now I'll add your idea to our "issues" so I may think of its implementation more thoroughly...
Well, we'll also need code samples for working with this API - but it is not complicated while most people use
only Python
, C++
, Java
and C#
...
I thought of this idea a bit more and here is how I see it now:
Now how, I think, this should work. Imagine the problem is about playing "tic-tac-toe":
5
seconds for each new request, otherwise server also will
tell you that you lose the game.What do you think - will it be interesting?