r/competitivprogramming • • Feb 23 '20

This 0.11 sec difference is what i'll even sell my soul for!

Post image
12 Upvotes

r/competitivprogramming • • Jun 16 '20

Laaksonen's Guide to Competitive Programming is currently free by the publisher!

Thumbnail
link.springer.com
9 Upvotes

r/competitivprogramming • • Oct 27 '19

Please help me solve this question!

Post image
8 Upvotes

r/competitivprogramming • • May 26 '20

Can someone explain how to do this using DP

Post image
6 Upvotes

r/competitivprogramming • • Apr 09 '20

All the solutions to the competitive programming course's problems by Coding ninjas🌟:

Thumbnail
github.com
5 Upvotes

r/competitivprogramming • • Jun 21 '20

can someone explain the logic

Post image
4 Upvotes

r/competitivprogramming • • Apr 23 '20

What are some good CP Books?

4 Upvotes

Can someone suggest some good competitive programming books ( Russian books most preferable if English translation is available ) that describes how to solve complex problems using mathematics


r/competitivprogramming • • Jan 04 '20

Any resources to learn competitive programming for free

4 Upvotes

Are there any resources such as books or online courses which provide indepth knowledge about game theory, DP?


r/competitivprogramming • • Aug 18 '20

TLE

3 Upvotes

Can someone give a detailed solution to the below problem?

https://cses.fi/problemset/task/1141/

I have implemented a solution of O(N log N) average but it is giving tle on some test cases

My solution: https://gist.github.com/Aryamn/0a6a18b3ab37e69df00a0aa99ea0da6d


r/competitivprogramming • • May 22 '20

Another Problem

3 Upvotes

Please tell me how to approach the problem

https://codeforces.com/contest/1060/problem/C

I used prefix sum like dp and then binary search but somewhere arrays are going out of bounds

https://codeforces.com/contest/1060/submission/80916230

my solution


r/competitivprogramming • • May 11 '20

codeforces problem

3 Upvotes

r/competitivprogramming • • May 04 '20

colour stripe

3 Upvotes

can someone explain the logic and recursion behind this question

https://codeforces.com/problemset/problem/219/C


r/competitivprogramming • • May 03 '20

Want to find if elements of an array can be summed to give a specific sum.

3 Upvotes

Given an array A I want to find if i can add any elements of it to get a sum S


r/competitivprogramming • • Apr 21 '20

Java - modified subarray

Post image
3 Upvotes

r/competitivprogramming • • Apr 16 '20

I'm uploading myself live-solving LeetCode's 30 Day Challenge to my youtube channel

Thumbnail
youtube.com
3 Upvotes

r/competitivprogramming • • Apr 13 '20

I created a discord to discuss codeforces DIV 2 problems. Join in

Thumbnail
discord.gg
3 Upvotes

r/competitivprogramming • • Apr 12 '20

Help

3 Upvotes

can anyone help in solve this problem

https://atcoder.jp/contests/abc162/tasks/abc162_f


r/competitivprogramming • • Apr 04 '20

CodeJam Parenting Partnering Returns

3 Upvotes

https://pastebin.com/Mw0cLqiA

Can anyone find whats wrong in this? Every test case i can think of is giving correct output yet WA .


r/competitivprogramming • • Apr 04 '20

Code jam Problem 3

3 Upvotes

I am giving google codejam .

I solved the first two questions and implemented the third question. It has also passed the sample test cases but on submitting giving WA.

link to the problem : https://codingcompetitions.withgoogle.com/codejam/round/000000000019fd27/000000000020bdf9

My solution :

https://pastebin.com/iHC5zp7F

Can anyone point out the mistake ??


r/competitivprogramming • • Aug 02 '20

Leetcode Sort Colors Solution Explained | C Editorial 🔥

Thumbnail
youtube.com
2 Upvotes

r/competitivprogramming • • Aug 02 '20

How to do this?(explain the logic please)

2 Upvotes

r/competitivprogramming • • Apr 28 '20

Problem hackerearth

2 Upvotes

r/competitivprogramming • • Apr 06 '20

Number with X total factors out of which there are K distinct prime factors.

2 Upvotes

I got a method but I'm getting TLE. Any help?

For example if X = 8 and K = 2 24 satisfies the condition.

We have to print 1 if any such number exists and 0 of no such number exists.


r/competitivprogramming • • Mar 11 '20

What to do next?

2 Upvotes

I recently started competitive programming in java language. I earned a 5 star batch in problem solving sections under practice, Hackerrank. Now, what to do next??


r/competitivprogramming • • Mar 04 '20

Can someone please explain the solution to this!!

Thumbnail
hackerrank.com
2 Upvotes