Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 40121 articles
Browse latest View live

product of two large numbers

How to get product of two large numbers?

View Article


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 Article

Fastest 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 Article

Miller 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 Article


Getting 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 Article

GDOG - 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 Article

Codejam: File Input/Output in C++

Please provide me the code snippet for taking inputs from .in files and output to .out files.

View Article


MIXFLVOR - Editorial

PROBLEM LINK:ContestPracticeAuthor:Hasan JaddouhTesters:Kamil DebowskiEditorialist:Hasan JaddouhDifficulty:Medium-hardPrerequisites:Gaussian-elimination, two pointers, two stacks trickProblem...

View Article


Image may be NSFW.
Clik here to view.

Introduction 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 Article

rotating 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 Article

Can 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 Article

Absurd 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 Article


Query on BRCKTS problem SPOJ

My implementation to the problem BRCKTS, please help me debug, where am I getting wrong!

View Article

Nimble Game-Theory

Please explain me the Winning Strategies of Nimble Game of Game Theory and how it is similar to trivial Nim Game ?

View Article


Editorials for FEB17

@admin please provide the editorials for FEB17 and DEC16.

View Article

0-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 Article


Ball 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 Article

NZEC 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 Article

StopStalk: 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
Browsing all 40121 articles
Browse latest View live


Latest Images