It would really be helpful if Codechef makes representative test cases...
I feel making representative test cases available after the competition can be really helpful to programmers in debugging their code. Of course, I understand that this could lead to some users just...
View Article(KETFAST)Why i am getting WA?
Problem link-->https://www.codechef.com/problems/KETFASTMy Solution-->import java.util.Map; import java.util.Scanner; import java.util.TreeMap;public class ketfast { public static void...
View ArticleFastest Way to calculate Nth fibonacci number modulo M
1 ≤ N,M ≤ 1018 code using Fast Doubling #include <map> #include <iostream> #include <bits/stdc++.h> using namespace std; #define MAXN 60 #define MAXM 4 long long int M,N ; long long...
View ArticleMiller Rabin Deterministic Algorithm
I wrote the following code for finding prime numbers between two given integers n,mInstead of the standard sieve method I tried using the Miller-Rabin test....
View ArticleGetting started here, questions about strategy, etiquitte, etc.
Hi guys. I've just started here, I have a few questions about how I approach this place. Firstly, let me just say that wow - some of the problems here are pretty difficult, even for easy!Alright, so...
View ArticleGDOG - Editorial
PROBLEM LINK:PracticeContestAuthor:Pavel SheftelevichTester:Vlad MoskoEditorialist:Pawel KacprzakDIFFICULTY:CAKEWALKPREREQUISITES:Simple mathPROBLEM:You have $N$ coins. You are about to call any number...
View ArticleCodejam: File Input/Output in C++
Please provide me the code snippet for taking inputs from .in files and output to .out files.
View ArticleMIXFLVOR - Editorial
PROBLEM LINK:ContestPracticeAuthor:Hasan JaddouhTesters:Kamil DebowskiEditorialist:Hasan JaddouhDifficulty:Medium-hardPrerequisites:Gaussian-elimination, two pointers, two stacks trickProblem...
View ArticleIntroduction to Graphs: Definitions, Traversal, Depth-First Search
Hello @all,As I have mentioned on several posts here on forums, I am only now starting to learn graphs in a more educated, methodical and serious way, so, after I have studied DFS for few days and due...
View Articlerotating an array
can anyone help me with an efficient solution to rotate an array?https://www.codechef.com/problems/ROTATION not getting solution of the above?
View ArticleCan someone please provide a clear explanation to the February CookOff...
The editorial for the problem is written in very bad English and I find it difficult to understand what the author is trying to communicate to the reader. Can someone who understood whatever he wanted...
View ArticleAbsurd english being used in Editorials must be avoided. Please have a...
I was going through this editorial:https://discuss.codechef.com/questions/91508/mixflvor-editorialOnly to encounter sentences like this:we can easily supporting add new elements and deleting the...
View ArticleQuery on BRCKTS problem SPOJ
My implementation to the problem BRCKTS, please help me debug, where am I getting wrong!
View ArticleNimble Game-Theory
Please explain me the Winning Strategies of Nimble Game of Game Theory and how it is similar to trivial Nim Game ?
View Article0-1 Knapsack Subset
Given number of items and maximum capacity......each item has corresponding id, profit and weight. How to find the subset in order to make the maximum possible profit using dp?????? Please help...
View ArticleBall Elimination - DP problem
Problem -https://www.hackerearth.com/practice/algorithms/dynamic-programming/2-dimensional/practice-problems/algorithm/ball-elimination/Can someone please explain the approach for this problem. The...
View ArticleNZEC Error Python 2.7
Can anybody please tell all the possible cases in which we receive a NZEC error.Every time I try to submit a problem i receive a NZEC error it is really discouraging receiving this error every time you...
View ArticleStopStalk: Tool to maintain your algorithmic progress
Hello Coders,Hope you are having a great time coding hard. Here I present to you a Utility tool - StopStalk which will encourage you to keep your algorithmic progress going by coding with your friends...
View Article