problems not added to practice
are problems of external contest (bytes 2014) will be added to practice..?
View ArticleNEZC(non exit zero code)
i have written a code the code is working fine but while submitting it i get a Non exit zero code and due to this i m getting a error. but my program i correct and i m getting the correct output too ....
View ArticleFCTRL unexpected output
Here is my code for http://www.codechef.com/problems/FCTRL problem.The problem is that my program is giving correct output upto factorial 17 but number after 17 gives wrong output. I have tried to code...
View ArticleBWALL - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEXPLANATIONSETTER'S SOLUTIONCan be found here.TESTER'S SOLUTIONCan be found here.
View Articlecan anyone explain this?????
Find the number of palindromic strings that can be made of length N, or less
View Articlepairwise operations on set
Recently I have encountered many questions which require performing some operations like XOR, or some f(x) pairwise on a Set....by pairwise I mean, if set is {2, 4, 6}then required O/P is 2^4 + 4^6 +...
View Articlemedium level problem - Marbles SIGSEGV error
for the problem Marbles : http://www.codechef.com/problems/MARBLES here is the code. But the problem is code chef is returning SIGSEGV error and i am unable to find out the problem in my code. So...
View ArticleTACHSTCK - Editorial
Problem Link:PracticeContestDifficulty:CakewalkPre-requisites:Ad HocProblem:Given N sticks of lengths L[1], L[2], ... L[N] and a positive integer D. Two sticks can be paired if the difference of their...
View ArticleFinding the difference between speed of c++ and java program?
Execution of time of c++ came out to be 0.01 sec and that of java came out to be 0.43 sec..Even with such difference in execution time how coders are successfully able to compete in programming...
View Articlemarbles logic HELP PLSS
What is the logic of marbles in medium practice section....how it can be (n-1)C(k-1)??.....pls help...thanks
View ArticleEDITORIAL BYTES4 - TODO EN UNO
Problem Link: http://www.codechef.com/problems/BYTES4Difficulty : Medium HardStrategy : GCD,SieveExplanation : Here we have to find the maximum GCD of all the pairs possible. The most trivial method is...
View ArticleFCTRL Time Help
`#include<stdio.h>include<stdlib.h>inline void scanint(long int a) { char c = 0; while(c<33) //c = fgetc_unlocked(stdin); c = getc(stdin); a = 0; while(c>33) { a = (a)*10 + c - '0';...
View Articlewhat is best deterministic primality checking algorithm??
i hv tried checking primality of a number bt testing till sqrt of number bt its too time consuming for big numbers.. Fermats test involves expotential terms and is tedious to implement for a large...
View ArticleArithmetic series -Google Interview Question
Given an array of integers A, give an algorithm to find the longest Arithmetic progression in it, i.e find a sequence i1 < i2 < … < ik, such that A[i1], A[i2], …, A[ik] forms an arithmetic...
View ArticleArithmetic series -Google Interview Question
Given an array of integers A, give an algorithm to find the longest Arithmetic progression in it, i.e find a sequence i1 < i2 < … < ik, such that A[i1], A[i2], …, A[ik] forms an arithmetic...
View ArticleSIC Assembler PASS 2
This is the code i did for pass2 of a SIC assembler. Please go through it and feedback on how to improve it.#include<stdio.h> #include<conio.h> #include<string.h>...
View ArticleLUCKY1 - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONIt is well-known that the sum of any range Sum[l; r] can be rewritten in form Sum[0; r]-Sum[0; l-1]. Let Sum4[i] is the total number of digits 4 in...
View ArticleThe Lead Game , What's wrong with my code ?
The code is for question The Lead Game ,its showing wrong answer while submitting but running perfectly on ideone.com .please help . #include<stdio.h> int main() { int...
View ArticleSmall Factorial
//my code for smallfactorial,it's giving correct output in my system but not here..please tell me whats wrong in it???#include <stdio.h> #include <stdlib.h> int fact(int); int main() { int...
View Article