Professional Documents
Culture Documents
This Section of The Faq Is Only Dedicated To Submissions That Codevita Participants Make To The Codevita Systems
This Section of The Faq Is Only Dedicated To Submissions That Codevita Participants Make To The Codevita Systems
3. What does the "Almost there, think some more" status message convey?
It conveys that your submission is failing at least one of the test cases. You should work on figuring out
what test case your program could be failing and work on fixing it.
4. I get a Time Limit Exceeded status message. I know I have to optimize it, but to what extent?
Different questions have different maximum upper bounds on the allowed run-time. As long as you
continue to receive this status code you must understand that your program is exceeding the threshold
set as maximum allowed time for solving this problem. In such cases, you should typically re-think your
algorithm used for solving the problem. If your solution uses a brute force approach try figuring out an
optimal algorithm for the same. Once you submit solution with optimal algorithm, this error should go
away. This is just one example of handling TLE. There could be more ways. Bottom line is you have to
optimize your program.
5. I get a Memory Limit Exceeded status message. I know I have to reduce memory footprint of
the program but by how much?
Different questions have different maximum upper bounds on the allowed memory consumption. As long
as you continue to receive this status code you must understand that memory consumption of your
submitted code is more than allowed limits. Also, different languages have different memory limits for
the same problem. So if you are proficient in more than one language, try re-writing code in another
language.
8. My code compiles on my machine, the system shows my submission has Compile-Time Errors.
How is this possible?
Firstly, ensure that you are using the same compiler that the CodeVita system is using. For e.g. do not use
Turbo C and expect the code to be compiled on CodeVita systems which uses gcc.
Secondly, even if you are using the same compiler, check if you are using a version higher than what
CodeVita system is using. For e.g .if CodeVita system is using Oracle JDK 1.8 and you are using Oracle JDK
1.9, it’s likely that your code may fail to compile because new features of 1.9 are not available in 1.8.
Finally, even if you are using same compiler of the same version that the CodeVita system is using, it is
still possible to get a Compile Time Error.
This is because CodeVita systems will use certain compilation flags which you may not have used in your
system. Also, try to ensure that there are no Warnings that the compiler issues. It is also possible that
Warnings get treated as errors. In such cases, the Compile-time error message that CodeVita systems will
depict should be carefully studied. If you pay enough attention to the error message, you should be able
to figure out cause of CTE and then eliminate it.
2) Can I go back to the welcome page after starting to answer the coding problems?
a. Yes, you can.
4) Where can I see the list of languages and compilers with their version?
a. On the welcome page under ‘Languages’ tab, you may click on the ‘+’ sign and see the
languages to be used and the compiler version.
5) If I move to question no. 2 without submitting question1, does the timer continue for
Question1?
a. Yes
7) If I have referred/used a code from the internet, do I have to declare the same?
a. Yes, before you submit your code, you will have an option (I have found this code from
another source) Select this option before submitting. You are free to refer other
material but you need to declare the source code.
11) How long is the first round of CodeVita and what is my contest duration?
a. First round of CodeVita runs for 24-hrs window.
Each participant will get maximum of 6 hrs to solve the problems. In order to avail full 6 hrs, the participant
should start their individual contests minimum 6 hours before the end time of the contest
12) Does seeing the Full Problem statement have any significance?
Yes, clicking on "View Full Problem" button starts the timer for that problem. This timer is maintained
internally by the system and is not displayed unlike the contest timer. So every participant should be
judicious in his / her approach before letting the timer start for that problem.
14) Why didn’t I get my allotted quota of 6 hrs during the contest?
This will happen if you start your contest with less than 6 hrs remaining for the contest to close.