Code

Competitive Programming: Evil or a Good School

Competitive Programming: Evil or a Good School

Free course: “Quick start in Python"

Learn more

Competitive programming is a unique form of intellectual eSports, where participants develop programs to solve complex logical and mathematical problems. Competitions are typically held online, and the number of problems varies from several dozen to several thousand. Judges evaluate participants based on the number of successfully solved problems and the quality of their solutions within the given time. The history of programming competitions dates back to the 1970s, and since then they have gained widespread popularity, attracting an increasing number of developers and programmers from around the world. Competitive programming not only develops algorithmic thinking skills but also promotes the exchange of experience among participants, making it an important part of the modern educational process in the field of information technology.

We discussed with developers and team leaders how the experience of competitive programming can be useful and in which companies it opens up new opportunities. We've also compiled a list of the six best programming championships, including competitions for both students and experienced professionals. These events will help you improve your skills, broaden your professional horizons, and become more competitive in the job market.

Why participate in competitions?

Reputable companies not only organize their own competitions but also actively support independent projects. Their motives are obvious: in this way, they contribute to the development of the entire industry, provide an opportunity for talented developers to prove themselves, and also find promising employees. This is why thousands of people participate in competitive programming, seeking to make a name for themselves and receive attractive job offers. Sponsoring and participating in programming events not only strengthens companies' image but also allows them to stay up to date with new technologies and trends, which in turn benefits the entire community.

Some young participants hope to go to Silicon Valley without completing a higher education. A prime example is Scott Wu, one of the winners of the International Olympiad in Informatics (IOI), who, at 17, had already received job offers from renowned companies. As a result, he decided to pause his studies at Harvard for a year and joined Addepar. According to his employer, in just three months, Scott was among the top 10% of engineers on his team, confirming the high level of qualifications of the winners of such competitions who successfully work at Addepar.

Western startups and leading global corporations actively seek out winners of programming championships, as they possess unique and in-demand skills. These programmers are able to solve complex problems and develop innovative solutions, making them valuable in the labor market. The high level of competence demonstrated by participants in such competitions allows them to stand out from other specialists and opens up numerous career opportunities.

There are areas that require deep optimization and solving complex algorithmic problems, but this is not a widespread phenomenon. Such specialists are in demand primarily by large companies such as Yandex or Google. Participating in programming competitions can be an excellent opportunity for developer development, if not viewed as an end in itself. This allows you to improve your skills, broaden your horizons, and increase your competitiveness in the labor market.

Mikhail Korneev is a team lead at BestDoctor and the creator of the popular YouTube channel "Sly Python." He actively shares his experience and knowledge in Python programming, making his content valuable for developers and aspiring programmers. Mikhail covers current topics related to software development and offers advice on improving coding skills. His YouTube videos attract a wide audience, confirming his expert status in the IT field.

Competitive programming practice is beneficial for intellectual development and helps improve analytical skills. However, using Olympiad achievements as the primary indicator of professionalism indicates a lack of maturity in software development. It's important to understand that a successful career in IT requires not only theoretical knowledge but also practical experience, teamwork, and real-world problem-solving skills.

Programming is a valuable skill that benefits developers in a variety of ways. Problem-solving and maintaining constant mental activity are important aspects of development. However, the downside is comparing achievements, evaluating people based on Olympiad medals, and applying Olympiad approaches in a production environment. However, if approached wisely and without extremes, competitive programming can be a useful tool for improving skills and developing analytical thinking.

Lead Software Engineer and author of the Telegram channel @topizza, which covers the latest trends in programming and technology. On my channel, I share useful materials, tips, and ideas to help developers improve their skills and stay up-to-date with the latest advances in the industry. By following @topizza, you'll gain access to relevant news and resources to help you grow professionally and master new technologies.

Alexey Nekrasov, Head of Python at MTS and Program Director at Skillbox, believes that competitive programming is a valuable skill. When approached correctly, it can bring significant benefits both professionally and personally. Competitive programming develops logical thinking, improves problem-solving skills, and facilitates the rapid adoption of new technologies, making it an essential tool in the modern developer's arsenal.

Competitive programming is an intellectual sport. With moderate practice, it develops thinking, helps to learn various algorithms, and develops the ability to solve complex problems in an unconventional way. However, excessive practice can lead to professional deformation, which negatively affects industrial software development skills. Olympiad participants focus on solving complex problems in the shortest possible time, but often face difficulties in developing and supporting large and complex systems. It is important to find a balance between competitive programming and real-world development to develop the universal skills necessary for a successful career in IT.

Criticism of competitive programming

Competitive programming, despite its benefits for intellectual development and the opportunity to access large companies such as Google, provokes skepticism among practicing programmers. Many of them believe that competition experience can be perceived as a disadvantage in most ordinary companies. This opinion is based on the fact that real-world projects require not only theoretical knowledge but also practical skills such as teamwork, time management, and business problem solving. It's important to understand that competitive programming and professional software development are different fields, each with its own requirements and values.

Mikhail Korneev, team lead at BestDoctor and author of the YouTube channel "Sly Python," notes that competitive programming has many characteristics and limitations that are absent in real software development. These aspects make competitive programming unique, requiring participants not only a deep knowledge of algorithms and data structures but also the ability to quickly solve non-standard problems.

Real-world software development and competitive programming have significant differences, similar to the differences between driving a taxi and racing in Formula 1. While both require cornering skills, you probably wouldn't want a taxi driver to drive as aggressively as a professional race car driver. The main objectives and approaches in real-world development and competitive programming differ in nature. In real-world development, stability, security, and predictability are important, while competitive programming emphasizes speed, efficiency, and competitiveness. These two worlds require different skills and strategies, making them unique in their respective fields.

In product development, it is necessary to solve user problems by finding a balance between development speed, code efficiency, maintainability, and software extensibility. In contrast, in competitive programming, the emphasis is on solving the maximum number of problems using the most efficient algorithms within a limited timeframe. In real-world development, situations often arise where you achieve high solution efficiency, but then the customer's requirements change, which may lead to the need to abandon a significant part of the optimal solution due to the complexity of its further support and expansion. This emphasizes the importance of flexibility and adaptability in software development.

A leading software engineer and author of the Telegram channel @topizza agrees with this point of view. He believes the main difference between Olympiad problems and production problems is that Olympiad problems are solved within a limited timeframe and end with the Olympiad, while production problems are ongoing and continue to require solutions even after the project is completed. Olympiad solutions have their own unique characteristics, distinct from the development of production applications. At an Olympiad, the focus is on quickly solving problems within a limited timeframe, and after the competition is over, they are typically not considered. In contrast, in production, not only functionality and development speed are important, but also issues of support, updates, bug fixes, and the integration of new team members. Key aspects include maintaining documentation, ensuring code readability, and continuous product improvement. Therefore, development in production requires a comprehensive approach and careful attention to each stage. Some developers perceive the experience of competitive programming in the context of product development as a negative factor. For example, Phil Ranzhin, host of the "We Are Doomed" podcast and head of development at Lingvotronic, expresses this point of view. Many professionals agree with him, believing that the skills acquired in competitive programming may not always be useful in real-world projects. This opinion opens a discussion about what is more important in software development: algorithmic thinking or practical experience working on products. Competitive programming emphasizes the speed of task completion, as well as knowledge of mathematics and related sciences. In contrast, product development focuses on code quality and strict adherence to development processes. Competitive programming develops algorithmic thinking and problem-solving skills under time constraints, which are important aspects for competitions. Product development, in turn, requires a deep understanding of software architecture and testing methods, which ensures the reliability and stability of the final product.

Bottom Line

Programming olympiads are an excellent opportunity for students and schoolchildren looking to attract the attention of large companies such as Google and Yandex. Success in these competitions allows young talents to begin a career in IT, often even without a higher education. Participation in olympiads opens doors to Silicon Valley, where you can earn a competitive salary and develop in one of the most dynamic fields.

In mass production, competitive programming approaches can create certain difficulties. This is due to the fact that the principles applied in competitive programming are often focused on solving problems under pressure and under tight deadlines. In contrast, mass production requires stability, predictability, and quality in software development.

Competitive programming focuses on solving specific algorithmic problems, which can lead to the neglect of broader development aspects such as code maintainability, teamwork, and project management. In high-volume production environments, it is important to consider not only the efficiency of algorithms but also their integration into the overall application architecture.

Thus, while competitive programming approaches can be useful for improving problem-solving skills, in the context of high-volume production, they can become a hindrance if not adapted to the specific requirements and conditions of development.

  • Finding a compromise between code efficiency and ease of maintenance imposes serious limitations that Olympiad participants are not accustomed to.
  • The Olympiad-driven desire to solve everything as quickly and efficiently as possible can lead to having to rewrite large sections of the program simply to make them suitable for real-world conditions.

Working in a regular company does not exclude the possibility of benefiting from competitive programming. Participating in programming competitions can significantly improve your skills in solving complex algorithmic problems and develop analytical thinking. It is important to approach this process consciously and understand its limitations. If you enjoy participating in competitions, continue to do so. The main thing is to enjoy the process, because happiness and satisfaction from work are more important than any rational criticism.

The Most Famous Tournaments

Programming competitions are held at various levels: from city to international. In this article, we'll look at the most prominent international events, which can be a great opportunity for developers to showcase their skills, attract the attention of major companies like Google and Facebook, and expand their professional horizons. Participating in such competitions will not only help you improve your knowledge but also establish important contacts in the industry. The International Collegiate Programming Contest (ICPC) is one of the most prestigious programming competitions. Students from universities around the world participate in this competition, demonstrating their programming skills and knowledge. In 2018, 52,709 students from 3,233 universities in 110 countries participated in the ICPC. The competition is supported by major IT companies, including IBM, which sponsored the event from 1997 to 2017. ICPC provides a unique platform for developing programming skills, teamwork, and complex problem solving, making it a significant event in the world of education and technology.

ICPC teams consist of three students who have been out of university for more than five years. Each participant is allowed to participate in the world finals or regional stages of this prestigious competition only once. These strict restrictions make the competition unique and help maintain the high level of competition.

Teams participate in the competition, receiving 8 to 15 programming problems to solve within five hours. The programming languages ​​supported for completing the problems are C, C++, Java, Ada, Python, and Kotlin. The correctness of the developed solutions is verified using test data, and the team that successfully solves the most problems in the allotted time is declared the winner. A unique feature of ICPC is that each team has only one computer. This creates additional challenges in the problem-solving process, requiring participants not only programming skills but also effective teamwork.

ICPC winners are in demand at tech companies and startups as developers and software engineers. Among the finalists of this Olympiad are such renowned figures as Adam D'Angelo, former CTO of Facebook and founder of Quora, Nikolay Durov, co-founder of Telegram, and Matei Zaharia, creator of Apache Spark. Success at ICPC opens doors to career opportunities at leading IT companies, making participation in this Olympiad especially attractive for students in technical fields.

Since 2000, only teams from Russia, China, and Poland have won first place internationally. This highlights the high achievements of athletes from these countries and their dominance in various competitions.

Table of ICPC winners by year. Image: wikipedia.org

The International Olympiad in Informatics (IOI) is an annual programming competition for school students that has been held since 1989. The Olympiad has established itself as one of the most prestigious events in the field of computer science worldwide. It is held under the auspices of UNESCO and the International Federation for Informatics (IFIP). In 2017, teams from 83 countries took part in the competition, which underscores the international status and significance of this event for young programmers. Participation in the IOI provides school students with a unique opportunity to demonstrate their programming skills and solve complex problems, which contributes to the development of their careers in the field of information technology.

Up to four representatives from each country, who are selected at the national stages, can participate in the International Olympiad in Informatics (IOI). The Olympiad takes place over two days, with participants presented with three algorithmic problems each day. Each problem has five hours to solve. Participants may only use the C++ programming language to write their solutions. In accordance with IOI rules, using literature and consulting with other participants is strictly prohibited during the competition.

Problem solutions are assessed using automated tests. Since 2010, problems have been broken down into subproblems of varying difficulty. If a subproblem solution successfully passes all tests, points are awarded for it. This allows points to be earned even if the overall solution to the problem is incorrect. This approach facilitates a more accurate assessment of the participants' skills and efforts and also helps identify their strengths in solving individual aspects of the problem.

At this Olympiad, teams from China and Russia have demonstrated outstanding results, taking leading positions. Throughout the history of the competition, these countries have won the greatest number of awards, confirming their strength and competitiveness in the international arena.

IOI Winners' Table. Image: wikipedia.org

In 2021, the Olympiad will be held online. This decision is due to current global conditions and the desire to ensure the safety of participants. The online Olympiad provides unique opportunities for athletes and spectators, allowing them to participate and support their favorite participants from anywhere in the world. Technology makes it possible to organize competitions at a high level, preserving the spirit of competition and ensuring the spectacle of events.

The International Programming Contest (ICFP) has been held annually since 1998 and has become a significant event in the field of functional programming. The results of these competitions are announced at the International Conference on Functional Programming, which underscores the importance of the event for the programming and research community. Participation in the ICFP provides an opportunity to demonstrate skills, exchange experiences, and learn about new trends in functional programming.

Teams can consist of participants of various skill levels and use any programming language. Previous winners have written code in languages ​​such as Haskell, OCaml, C++, Cilk, Java, F#, and Rust. There is no entry fee. Participants have 72 hours to solve the problems, and on average, about 300 works are submitted to the competition. Both adults and schoolchildren are welcome to participate, making the competition accessible to a wide audience.

Competitive programming competitions have been held since 2001 and cover various categories, including algorithms, design and development, and marathons. Participants have the opportunity to demonstrate their skills in solving complex problems, creating effective algorithms and implementing original solutions. These events promote the development of critical thinking and teamwork, and also provide an opportunity for the exchange of experience among programmers.

Participants have the opportunity to take both practice and full tests. During the practice test, the participant submits their program, which is then tested on 10 pre-determined datasets. In the full test, the program is tested on 100 secret, randomly generated datasets, which are the same for all participants and are created before the competition. After completing the test, participants receive only overall scores, without providing detailed information about their results.

Topcoder tournaments are among the most significant in the world of programming. These include Topcoder Open, which is considered an unofficial world championship among professionals, and Google Code Jam, held until 2007 in partnership with Google. Since 2006, a separate competition for schoolchildren, TopCoder High School, has also been organized. Over the course of the tournament's history, winners have been paid almost $72 million, underscoring the prestige and importance of participating in these competitions for programmers of all levels.

The Codeforces platform organizes the competitions with the support of ITMO University in St. Petersburg. By 2018, the number of registered participants on the platform exceeded 600,000. Codeforces is one of the largest online programming competitions, attracting participants from all over the world and providing unique opportunities to develop algorithmic thinking skills and solve complex problems.

The competition is led by award-winning competitive programmers—Belorussian Gennady Korotkevich and Russian Petr Mitrichev. Both are multiple winners of international and Russian championships organized by leading companies such as Google, IBM, Facebook, VKontakte, Yandex, and Mail.ru Group. Their experience and achievements in competitive programming make these competitions high-quality and prestigious.

The Codeforces platform is a popular tool for preparing for various programming competitions. Every week, the site hosts short, two-hour "Codeforces Rounds," which allow participants to improve their problem-solving skills and advance their level of preparation. By participating in these rounds, programmers can not only practice but also compare their results with other participants, which contributes to their development in the field of algorithms and data structures.

Facebook Hacker Cup is an international programming competition organized by Facebook since 2011. The main goal of this event is to identify talented developers and attract them to the corporation. Competitors must solve a series of algorithmic problems in a limited time, and any programming language and development environment are allowed. The history of the competition often notes the victories of Russian and Belarusian programmers, which underscores the high level of their preparation and creativity in problem solving. Facebook Hacker Cup provides a unique opportunity not only to demonstrate your skills but also to potentially become part of the team of one of the largest tech companies in the world.

Of course, I am ready to help with editing the text. Please provide the text itself that you want to change.

Facebook* Hacker Cup winners table. Image: wikipedia.org

Google Code Jam is a prestigious programming competition held since 2003. Participants solve a set of algorithmic problems under time constraints, using any programming language and development environment. From 2003 to 2007, the competition was held on the Topcoder platform, but since 2008, Google has implemented its own system for the competition. Google Code Jam attracts talented programmers from all over the world and serves as an excellent opportunity to demonstrate their skills in algorithms and solving complex problems. By participating in the competition, you not only test your abilities but also have a chance to be recognized and receive prizes from Google.

The competition is held online and consists of several rounds. To participate, you must have a Google account. Participants' solutions are verified using various test datasets. The prize fund is $15,000.

From 2015 to 2018, Google held the Distributed Code Jam competition, which ran parallel to the classic Code Jam. These competitions focused on distributed algorithms and aimed to attract talented specialists, similar to what Facebook does. Becoming a programmer is possible at any age, regardless of your experience participating in Olympiads. Start your development training with courses from Skillbox, which offer high-quality training and practical skills. Solving Olympiad problems can also be an excellent supplement to your studies, allowing you to develop logical thinking and improve your programming skills. Don't miss the chance to improve your knowledge and confidently step into the world of IT.