here you will find all related articles about programming and you all know that what is programming so if you dont know what is programming then read full description:- Programming is the process of creating a set of instructions that tell a computer how to perform a task. Programming can be done using a variety of computer "languages," such as SQL, Java, Python, and C++. so you finnally know that what is programming so enjoy the site articles and much more thanks

Advertisement

Breaking

Thursday, May 16, 2019

Tips and Tricks for Competitive Programmers | Set 1 (For Beginners)

Tips and Tricks for Competitive Programmers | Set 1 (For Beginners)


This article is a group of diverse suggestions that would assist beginners of Competitive programming to get an insight of factors that need to or shouldn’t be accomplished.

Competitive programming can most effective be improved by means of “PRACTICE, PRACTICE AND PRACTICE”. Try to remedy as many questions you can solve on web sites like practice.Geeksforgeeks.Org. This will beautify your mind to think extra on algorithms.

Start with the beginner segment, and while you feel secure with that, circulate directly to better stage i.E. Smooth, medium, and hard and so on. Try to strive all of the questions yourself and don’t see the answer before trying it. Don’t experience demotivated when you get wrong answers, it’s simply a part of the gaining knowledge of. The more you exercise the extra you examine. Just be passionate about coding and practice.

Few Days before you begin:

Learn -Practice-Repeat -Try to examine a new concept on a each day basis. Solve questions every day, one or two if now not extra!! After going via a brand new algorithm or technique, we need to straight away search for its programs and try issues. Like in case you examine dynamic programming, attempt to finish up all its issues. Adapt the dependancy of analyzing which most of the children don’t have in recent times.
Write earlier than coding– Implement all algorithms your self instead of copying from a person else. Make your self written notes while reading those ideas. Mathematics is great area to begin aggressive programming.
Getting Edgy- During exercise usually solve that problem this is simply at the edge of your information i.E., you don’t exactly know the way to clear up the hassle however you understand what you should recognize to solve that trouble. For example, you look at the hassle and you can tell that it’s a simple graph hassle however you do now not recognize some thing approximately graph.
Trees, Graphs, Algos– Make certain you're thorough with the concepts of trees, graphs and important algorithms as there may be at the least one question utilising their applications in each contest or a corporation hiring spherical.
Short is good– Long contest is right for getting to know but attempt to participate in increasingly more quick contests. Short contest is the actual competitive programming. We should make it a should habit to spend a few short time in the course of peak hours in a programming forum where pinnacle coders generally hangout sharing their insights and frequently get into discussions.
Complexity is Complex– Do now not be enthusiastic about decrease and decrease execution time. Do now not waste time on over-optimizing your answer. If the solution is accepted, move directly to next problem. First simply get into the dependancy of coding every day after which fear approximately complexities.
Hard must come– Some humans say Stick to one website for exercise at the same time as others accept as true with you have to flavor all bunches. Whatever you decide , slowly however truely begin solving more difficult troubles.
Target Job– If you are often collaborating inside the contests which are meant for jobs then make certain to examine all previous questions, algorithms and associated stuff to cut brief your efforts as well as selection time.You ought to attempt previous enterprise questions too.
Last day earlier than the competition specially If you are attempting the contest for Getting Hired




Don’t look for new problems due to the fact which can create panic in your thoughts.
Take enough amount of sleep the night time earlier than. Keep your mind at ease and live strain unfastened
During the competition

Be Attentive – Most of the programmers whilst see a brand new query, they will hurry in typing it on device earlier than pre making plans or before writing good judgment to crack that assignment. Sometimes they may stick at a factor in among of typing code in machine and can need to start coding again. If we avoid typing in device before cracking the common sense it is going to be beneficial to shop time. One must start with:
Reading the trouble statement at the least twice
Analyzing the trouble declaration
Input output sample must be stored in thoughts before submission and study trouble oftentimes to understand idea behind hassle.
Use pen and paper to develop the common sense after which code
Read the instructions of the contest cautiously (Time restrict, Meaning of diverse symbols used in the contest web page, Number of submissions allowed and many others.)
Clock is ticking– Keep an eye at the clock .If you are not able to resolve a specific query, you very well have the option to go to subsequent.
Test the test instances– If your code is not time-honored, then undergo your code once more and take a look at approximately variable announcement, complexity of the code, and attempt checking your code for more than one numbers of check cases.
After the competition

Editorials are MUST– After submission; even if your code is standard then just don’t leap directly to the next query. Try to read editorial of the question , this could help you understand higher and green answer of that question.
Geeks around may additionally understand higher- Examining codes written with the aid of other eminent coders will monitor amazing insights (if it is allowed). Even reviewing different’s way to a trouble we've got solved might reveal some of the unique functions of the problem and aids us in viewing the equal trouble from a distinct point of view. The crucial point here is that- you may come upon distinct algorithms that are used to remedy questions, study those algorithms and make sure which you apprehend them.
Practice– Don’t worry in case you are not able to resolve the questions there, it simply means which you need greater practice.
Past teaches destiny– It is a good practice to stick to a trouble which we're not able to solve for as a minimum 2 days. On reviewing the answer, we will recognize wherein we deviated from the appropriate path and would resource our thinking manner in destiny attempts. We need to make a be aware of the problems which we were not able to resolve and subsequently, we went for the solution. We should make sure to review the equal hassle after a couple of weeks and try to resolve it totally.
Time is treasured– Preparation for anything is very crucial be it for a contest day, an checks or a undertaking submission, which student usually fail to do. Preparing on the remaining second frequently fail quick of the expectancies. Give sufficient time to go through algorithms, pattern issues and paintings upon your own strengths and weaknesses.
Happy Coding!!

This article is exclusively drafted through contributions of our Campus Geeks- Rahul Agarwal, Aditya Chatterjee, Shubham Singh Rajput, Vineet Sethia, Saiteja Reddy, Shaily Seth, Mudit Maheshwari and Ajay Jain.

Tips and Tricks for Competitive Programmers for use for Competitive Programming)

If you want GeeksforGeeks and would love to contribute, you may also write an editorial and mail your article to contribute@geeksforgeeks.Org. See your article appearing at the GeeksforGeeks fundamental page and assist other Geeks.

Please write comments in case you find some thing incorrect, or you want to share more records approximately the subject discussed above




Recommended Posts:
Top 10 Algorithms and Data Structures for Competitive Programming
How to begin with Competitive Programming?
How to grow to be a master in aggressive Set 2 (Language to be used for Competitive Programming)
Competitive Programming: Conquering a given hassle
Fast I/O for Competitive Programming
A Better Way To Approach Competitive Programming
getchar_unlocked() - quicker enter in C/C++ for Competitive Programming
Bitwise Hacks for Competitive Programming
Some important shortcuts in Competitive Programming
Fast I/O in Java in Competitive Programming
Frequency Measuring Techniques for Competitive Programming
Graph implementation using STL for competitive Set 1 (DFS of Unweighted and Undirected)
Graph implementation the usage of STL for aggressive Set 2 (Weighted graph)
Writing C/C++ code successfully in Competitive programming

No comments:

Post a Comment