Posts

Showing posts with the label CodeVita Contest

Codevita - Typical mistakes people make and how to correct them

Image
Hello friends!!! In this post, we will deal with primarily three kinds of errors which are a source frustration to many. Compile Time Error:- Why isn't my program compiling on the Server? Runtime Error:- What Wrong did my program do? Wrong Answer:- How can my answer be wrong? Question that gets asked the most, typically by first time users is - Code compiles fine on my machine. Why does the system say Compile Time Error? Before diving deeper, ask yourself these questions 1) Am I using the same compiler as the server-side? 2) Is my IDE adding any switches to the compilation option? Do I know all the switches my IDE is using? Are they matching the server-side switches. The Server-side switches are   C           :- gcc -Wall -lm $file C++       :- g++ -Wall -lm $file Java      :- javac -J-Xms8m -J-Xmx8m -Xlint:none -XDsuppressNotes $file Csharp  :- mcs -warn:0 $file CodeVita syst...

Questions asked in past editions on CodeVita

Hello friends!!! For practice, we are releasing few questions asked in past editions of CodeVita. These 4 questions are named 1) Brokerage 2) HelloWorld 3) Isotope 4) Hexagonal Triangle Number The question text comprises of the following sections:- 1) Problem text 2) Input Format 3) Constraints (if any) 4) Output Format 5) Sample input and output. CodeVita platform does automated evaluation of code submitted by participants. No human intervention happens for evaluating the code. That is the reason why the platform is able to provide real-time response to the participant regarding correctness of the submission. The platform compiles the code, executes the code and runs a battery of test cases to decide if the submission is correct or incorrect. For this process to work, it is CRITICAL that participants that Input and Output Formats specified in the problem text are properly followed. Without adherence to input/output specifications the platform can...

Basic things that every CodeVita participant must know

Hello friends!!! Rules 1) You know that CodeVita is a team contest with team size 2. 2) As a team you get 6 hrs to solve the problems. If both team members login at same time they will get 6 hrs each. Submissions 1) CodeVita will consider team scores. You should choose a strategy that will maximize your chances of solving maximum problems. 2) You know that you have a chance to make unlimited submissions in any of the 7 languages that the system supports. 3) Supported languages are C, C++, C#, Java, Perl, Python and Ruby. 4) You can attempt a single problem in any number of languages as you wish. So lets say you started solving a problem in C and a few submissions later you feel that this problem is better solved in Java, you can do that. 5) Your target should be to get your submission in "Accepted" state. Compilers and IDE 1) You know that you have to write code on your machine and submit the code file as a File Upload to the CodeVita web appli...

All important things related to Codevita

Image
Hello friends!!! In this post, I plan to tell you a little about things we have been doing behind the scenes. Automatic Code Evaluation is a complex task. To make it scalable, reliable and perform-ant is even more difficult. But, we have been diligently doing the same so that you can have a good experience in participating in CodeVita - The TCS Coding Contest. For the uninitiated, a coding platform usually comprises of an engine which compiles the user submitted code and runs a battery of test cases against it before it can figure out if the submission is to be accepted or rejected. To isolate users from each other, there is usually some sand-boxing that the engine does. All these activities - compilation, execution, sand-boxing etc. are resource intensive. For 2013 season we had ~70K Submissions in the first round spread over a 24-hour window. That's roughly 4 submissions every 5 seconds. Rounded off, to compile and execute 1 submission in 1 sec is a pretty st...

My friends, Welcome to CodeVita !!!

Image
Hello friends!!! Let me start by telling you why TCS organizes CodeVita and how you should think about CodeVita. TCS believes in promoting the need of creating a Programming-As-A-Sport culture. Due to technological advancements and due to convergence of computers, mobiles, tablets etc. there's an exponential growth in User Generated Content (UGC). Also, in one sense, the first-wave of IT is kind of over. Enterprises have mostly finished their Billing Systems, Inventory Systems etc. The second wave of IT is going to be governed by phenomenon like Social, Mobile, Analytics and Cloud Computing. The second wave of IT is going to be much more complex than the first wave of IT. For that the bare minimum proficiency is going to be good programming skills.   There's no better way to do things than doing it with group of like-minded individuals, agree? So we at TCS, decided to have CodeVita. Competitions are a great way to bring out the latent talent. Its a stage for a budding...