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

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 cannot reliably evaluate the submission. Thus if you don't follow the IO specs, your correct solution will also be marked as wrong. Please note that you are dealing with a machine behind the scenes.

Coming to sections of the problem text, here's some bit of explanation:-

1) Problem Text:- This section explains the problem and lets you know what is it that you need to write the code for.
2) Input Format:- How should your program accept input. This is also referred to as Input specification.
3) Constraints:- This is an optional section. It may or may not be present in all questions. This section explicitly puts upper bounds and lower bounds on the computation that your program is required to do.
4) Output Format:- How should your program deliver the output. This is also referred to as Output specification.
5) Sample input and output:- Sample input which adheres to the Input Specification and sample output which adheres to the Output Specification

Pay attention to IO specs, comprehend the question very well, know that you are dealing with a machine, do your preparations very well and I am sure you will write good code. Enjoy the sample problems. Have fun solving them !!!

You can also like us at Facebook page also... www.facebook.com/tcspreparation

Comments

Popular posts from this blog

Swapping base locations in TCS

What is IRA (Initial Readiness Assessment) in TCS

How to do resign TCS (TCS resignation formality)