r/competitivprogramming • u/nitish_raawat • Feb 23 '20
r/competitivprogramming • u/lokk636336 • Jun 16 '20
Laaksonen's Guide to Competitive Programming is currently free by the publisher!
r/competitivprogramming • u/[deleted] • May 26 '20
Can someone explain how to do this using DP
r/competitivprogramming • u/Gourav-singh • Apr 09 '20
All the solutions to the competitive programming course's problems by Coding ninjas🌟:
r/competitivprogramming • u/JayPatel4007 • Apr 23 '20
What are some good CP Books?
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 • u/__shri__ • Jan 04 '20
Any resources to learn competitive programming for free
Are there any resources such as books or online courses which provide indepth knowledge about game theory, DP?
r/competitivprogramming • u/aaru2601 • Aug 18 '20
TLE
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 • u/aaru2601 • May 22 '20
Another Problem
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 • u/aaru2601 • May 11 '20
codeforces problem
https://codeforces.com/contest/289/problem/B
How to do this using dp
r/competitivprogramming • u/aaru2601 • May 04 '20
colour stripe
can someone explain the logic and recursion behind this question
r/competitivprogramming • u/GoblinHater • May 03 '20
Want to find if elements of an array can be summed to give a specific sum.
Given an array A I want to find if i can add any elements of it to get a sum S
r/competitivprogramming • u/sebamestre • Apr 16 '20
I'm uploading myself live-solving LeetCode's 30 Day Challenge to my youtube channel
r/competitivprogramming • u/[deleted] • Apr 13 '20
I created a discord to discuss codeforces DIV 2 problems. Join in
r/competitivprogramming • u/aaru2601 • Apr 12 '20
Help
can anyone help in solve this problem
r/competitivprogramming • u/prafulgupta6 • Apr 04 '20
CodeJam Parenting Partnering Returns
Can anyone find whats wrong in this? Every test case i can think of is giving correct output yet WA .
r/competitivprogramming • u/aaru2601 • Apr 04 '20
Code jam Problem 3
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 :
Can anyone point out the mistake ??
r/competitivprogramming • u/Gourav-singh • Aug 02 '20
Leetcode Sort Colors Solution Explained | C Editorial 🔥
r/competitivprogramming • u/[deleted] • Aug 02 '20
How to do this?(explain the logic please)
r/competitivprogramming • u/aaru2601 • Apr 28 '20
Problem hackerearth
I am having a problem finding the subtree. Can somebody help me??
Thanks for your response
r/competitivprogramming • u/GoblinHater • Apr 06 '20
Number with X total factors out of which there are K distinct prime factors.
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 • u/[deleted] • Mar 11 '20
What to do next?
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 • u/oxymoron_26 • Mar 04 '20
