r/programmingcontests • • Jan 11 '24

I made a web app for 1v1 LeetCode

21 Upvotes

Basically you choose a topic and difficulty and then you are matched with an opponent. First person to solve the leetcode question wins. There is ranked (you are not allowed to switch tabs) and unranked, and you can also play your friends.

All submissions are through your leetcode account so all progress is saved on your lc account

link: https://elitecode.app/


r/programmingcontests • • Aug 11 '21

Competitive Programming 4 pdf

15 Upvotes

Can anyone send to me a scan of competitive programming 4 (the two vols). I've ordered the paperback on their site (https://cpbook.net/) two months ago, but the order got stuck at some place, and Lulu's support is awful (at this point, I already accepted that I lost my money). So, I'm looking for someone that has it, and an send me a scan of both vols.


r/programmingcontests • • Jun 15 '20

A Comprehensive Guide to the USA Computing Olympiad

13 Upvotes

Hi everyone,

I'm excited to announce that my book, An Introduction to the USA Computing Olympiad, is released! It's a one-stop-shop comprehensive training resource for the Bronze and Silver divisions of the USACO. This book was written to fulfill the need of a standard textbook aimed for the USACO, analogous to AoPS Volume 1 for math, which I think the USACO community has been lacking for a while. The book is available for free in pdf form at the links below:


r/programmingcontests • • Feb 05 '24

what are some programming contests for people who graduated?

11 Upvotes

I never got the chance to do competitive programming when I was undegrad/hs and I want to.
any1 know of any leetcode style coding competitions I should keep watch for?

merci


r/programmingcontests • • Dec 05 '21

A Super-Useful Chrome Extension for Competitive Programmers

9 Upvotes

I have developed a Chrome Extension that goes by the name CP Calendar , which helps you get the schedule of all Competitive Programming contests, hosted by various well-known platforms, listed in a single place. Sounds cool?

It's completely FREE and what are you waiting for? Do try it out from the Chrome Web Store, drop a rating / review if you find it helpful.

A share with your programming friends or your college community would be considered gold.

Platforms supported:

  • Atcoder

  • CodeChef

  • Codeforces

  • GeeksForGeeks

  • Google - HackerEarth

  • Leetcode

  • TopCoder

ADD TO CHROME

#codechef #codeforces #competitiveprogramming


r/programmingcontests • • Oct 18 '21

Practice competitive programming in Discord !

9 Upvotes

Hello everyone , Thanks to CodeForces's API , i developed a discord bot that can help new competitive coders and enthusiasts alike , to practice their skills right from their discord server. My bot is named PraccForces (name by my buddy K9TN) , it can :

  • Fetch problems using selected tags and desired difficulty , or randomly if you are feeling lucky.

  • Fetch a contest with a selected division number. - Inform you about upcoming contests.

  • Link your CodeForces account to get displayed in the global leaderboard across all servers.

I am currently working on other features like problem solutions and player stats and leaderboards. I hope that this can help you in your competitive programming journey , i appreciate any feedback .

( I currennty make no money from Praccforces , and i'm not accepting any donations )

PraccForces Documentation : https://top.gg/bot/794901156890673162

This is an invite link for the bot : https://discord.com/oauth2/authorize?client_id=794901156890673162&permissions=311385517120&scope=bot


r/programmingcontests • • Sep 30 '22

My daily blog for Competitive Programming

8 Upvotes

Hello Reddit,
I am ay2306 (on Codeforces and Codechef), I write a daily blog on solving competitive programming problems and also teach what I have not covered in blogs.

You can check out my blogs at - programmingwitham.com/blog

If you are stuck on why you are not improving in competitive programming you can also consider reading - https://www.programmingwitham.com/post/how-do-i-improve-in-competitive-programming

I hope my blogs help out community :D


r/programmingcontests • • Jan 31 '22

How to become good at CP while being ridiculously dumb?

8 Upvotes

As the title says, I'm ridiculously stupid and dumb. It's been a month since I've joined Codeforces and started CP, and my dumbass brain can't create solutions. I've "practised" over 100 problems now but no improvement.

Is it true that stupid people like me should just quit? Rarely have I solved a problem on my own. I spend around 20-30 minutes thinking and submitting 4-5 wrong codes, then just look at the tutorial/correct submissions (and I'm talking about problems rated at 900-1200 in difficulty).

What can I do to become better and create my own solutions if I'm this dumb? I used to think I'm decent at math but the past month has made me feel so low and stupid that I feel like I should jump off cliff and die. My ego can't tolerate this. Any advise would be highly appreciated.

Thanks


r/programmingcontests • • Dec 23 '22

Is the CSES problem set good for competitive programming and interviews?

7 Upvotes

I want to get into competitive programming to prep for interviews and because I think it's fun and will help me increase my problem solving skills. I know people have said that competitive programming is overkill for interviews, but I think it'll be more fun. I was wondering if the CSES problem set is good for beginners or if it's outdated or something. Sorry if this questions is dumb, but I was planning on using another problem set, a2oj ladders, but people have stated that it's outdated, so I want to make sure that CSES isn't before starting. Or would something like Neetcode 150 be a better starting point, as it's good interview prep and covers enough A/DSA to have a foothold competitive programming. I would love suggestions lol. Thanks in advanced!


r/programmingcontests • • Apr 07 '20

I made a list of content to study for competitive programming

7 Upvotes

Studying competitive programming.

It maybe has some English grammar mistakes. Any suggestion, please, comment it.

I hope it will be useful.


r/programmingcontests • • Feb 09 '24

is oop necessary in cp?

6 Upvotes

SO im planning to take part in a local CP in a motnhs time. i plan on practiicng some DSA and leetcode. but should i learn oop? Dont get me wrong but ill definitely learn oop one day, but maybe not now


r/programmingcontests • • Nov 08 '23

Competitive Coding Hobby

6 Upvotes

I’m a sophomore doing a biochemistry major. My field lacks extracurricular competitions. I am wondering if it would be a good idea to take on competitive programming as a hobby to scratch my competitive itch. I don’t have much coding experience but I’m willing to put in hard work. Is this something worth pursuing at all?


r/programmingcontests • • Mar 09 '23

So, Facebook's Hacker Cup must be next on the chopping block, right?

6 Upvotes

Just heard the news about how Google Code Jam and Topcoder Open will be cancelled.


r/programmingcontests • • Aug 15 '21

How to start with DSA for competitive coding

6 Upvotes

So, i am a current first year cse undergraduate in a avg college in India. I have learned the basics of c programming and am able to code basic programs in c/c++. But i was intimidated by the problems on copetitive coding sites such as codeforces and codechef as i could barely understand the question albeit write the code for it. As i havent done any DSA i want to know how and from where should i start with. From where to learn the theory along with some examples and then problems to solve to gain some confidence in the topics.


r/programmingcontests • • Feb 23 '21

Maps & Sets, My next tutorial

6 Upvotes

Hey,

I made a tutorial about maps and sets check it out here: https://medium.com/@arisfotakis0/sets-maps-6314fd875b6b

Also, what do you want my next tutorial to be on:

11 votes, Feb 26 '21
2 Prefix Sums
6 Basics of Graphs
3 Two Pointers
0 Unordered Map & Unordered Set

r/programmingcontests • • Dec 30 '23

Is C# an allowed language for the Canadian Computing Competition?

5 Upvotes

I looked up the language specifications, and got C, C++, Python, and Java. But I've heard that C# is accepted as well. Has anyone ever used C#?


r/programmingcontests • • Dec 16 '23

bash / python script for Comptetive Programming

5 Upvotes

Could someone share the script to download, compile and test our solution from Linux command line. I have watched several YouTubers like Neal wu using that scripts, tried to find that on GitHub, but failed


r/programmingcontests • • Dec 07 '23

I made a debugging library for C++ version of Python print() function!

5 Upvotes

I made a debugging library for the C++ version of the Python print() function!
You can print various variables just by passing them to the function, which is suitable for debugging in competitive programming!

Features:

  • A wide variety of supported types

  • Auto indent

  • Colored output, and the color is customizable

  • Can print even user types by using a macro or defining an operator

  • Can print along with the filename, line, and function name

  • Manipulators to change the display style

This works in C++17 or higher.

https://github.com/philip82148/cpp-dump


r/programmingcontests • • Jun 08 '23

NEW CHROME EXTENSION FOR CODEFORCES: Codeforces Calender Spoiler

5 Upvotes

Greetings, Codeforces Community! Exciting news: my new chrome extension Codeforces Calender Chrome extension is now live. It offers a unique problem each day based on your Codeforces rating. It's ideal for those prepping for internships, placements, or anyone looking to break through a coding plateau.

Link to the extension: https://chrome.google.com/webstore/detail/codeforces-calender/kdpcekneldcnkajbmabmfgdpcdjdmcfd


r/programmingcontests • • May 30 '23

Tips for Competitive Programming

5 Upvotes

If you want learn competitive programming or you just wanna a QuickStart for your desired problems you should check this github repository: Tips for Competitive Programming. You can quickly start your C++ coding problems just with: bash <(curl -sL bash.propi.dev/cp). Give this repo a star and enjoy using it.


r/programmingcontests • • Sep 09 '22

Help with question

5 Upvotes

I've been working on this problem. I think the solution boils down to finding the gcd of A and B for all B. However, my code times out on larger inputs. Do you have any ideas as to how I can make it more efficient?

Here is my code:

#include <stdint.h>
#include <stdbool.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>

// int gcd(int a, int b)
// {
//     if (a == 0)
//         return b;
//     return gcd(b % a, a);
// }

int gcdExtended(int a, int b, int *x, int *y)
{
// Base Case
if (a == 0)
    {
        *x = 0;
        *y = 1;
return b;
    }

int x1, y1; // To store results of recursive call
int gcd = gcdExtended(b%a, a, &x1, &y1);

// Update x and y using results of recursive
// call
    *x = y1 - (b/a) * x1;
    *y = x1;

return gcd;
}

int main() {
int64_t A;
scanf("%d", &A);
int64_t count = 0;
for (size_t i = 1; i < A ; i++)
    {
int64_t B = i;
int64_t Randell = A - B;
// int smallest = gcd(A, B);
int64_t x, y;
int64_t smallest = gcdExtended(A, B, &x, &y);
if(Randell == smallest){
count++;
        }
    }
printf("%d", count);    
return 0;
}


r/programmingcontests • • Jul 21 '22

Would anyone provide c++ solution to the following problem.I don't know why I am keep getting tle.

Thumbnail
gallery
5 Upvotes

r/programmingcontests • • Dec 30 '21

I am a beginner in competitive programming. Do give me a roadmap of topics and platforms to follow to become a good competitive programmer.

5 Upvotes

I am a beginner in competitive programming. Do give me a roadmap of topics and platforms to follow to become a good competitive programmer. Looking for guidance and advice related what platforms to follow and the topics to be learned in sequence.


r/programmingcontests • • Apr 16 '21

Dynamic Programming Blog

5 Upvotes

Hey guys,

I made a tutorial about dp if you want to understand it in-depth and you would like to solve every dp problem you can read my tutorial here: https://medium.com/@arisfotakis0/dynamic-programming-c7149409eb54