SPOJ BITMAP WA
I am trying to solve the following problem : http://www.spoj.com/problems/BITMAP/I have used a multisource BFS approach to solve the problem. But I keep on getting WA. I tried coding from scratch again...
View ArticleCompiling code
When im uploading java file and then compiling it, it is showing error in as "error: class xyz is public, should be declared in a file named xyz.java public class xyz{"
View ArticleCodeforces problem runtime error!
I am trying to solve this problem using unbounded knapsack problem.But I am getting runtime error (Signal 11).Can someone please explain this.Here is the link to solution.
View ArticleFCTRL - Editorial
PROBLEM LINK:PracticeAuthor:ADMINEditorialist:SUSHANT AGARWALDIFFICULTY:EASYPREREQUISITES:Basic looping,Basic Maths(Number Theory)PROBLEM:Find the Number of Trailing Zeroes at the end of...
View ArticleFCTRL: Time limit exceeded
Hey, I tried solving the factorial problem, and I ended up with "Time limit exceeded". Here's my code. Also, this is a link to the problem for reference:...
View ArticleSTL Usage
I'm looking for various ways & scenario of using C++::STL.I'm not new toSTL but wanted to start using it extensively.Please help me.Currently, I refer STL from link:...
View ArticleMaths for Coding
I want to code as much as i can but the problem is with my math.I am from a background where no emphasis is given on maths as the way it is given in India (JEE). I cannot think the maths in the...
View Articlewhy i am getting SIGSEGV error with out using any arrays?
Hi in my code i am using only two variables taking the input from user and doing some operations then printing other variable no arrays nothing even then i am getting SIGSEGV error can any body help...
View Articlegenerating numbers containing 0 and 1 only
i wished to write a code in c or c++ that could help me to generate numbers containing only two type of digits(say 0,1) till an appropriate limit (say 100000).eg.0,1,01,00,10,11,110,111,101...and so...
View ArticlePREDEFINED FUNCTION NAME IS GIVEN TO USERDEFINED FUNCTION IN C++!!
I WOULD LIKE TO KNOW ABOUT THAT WHAT WILL HAPPEN IF I GIVE A PREDEFINED FUNCTION NAME TO A USER DEFINED FUNCTION IN C++ ??
View ArticlePRACTICE > EASY > THE LEAD GAME
Can someone please point out the error with my code?include<stdio.h>int main () { int i,max=0,win,flag=0; long int n;scanf("%ld",&n); int p1[n],p2[n]; if(n<=10000) { for(i=0;i<n;i++) {...
View ArticleSherlock and cost... Hackerrank DP problem
Why does this code time out?? Link to the problem problemHere is the solution with test cases (downloaded) ideone
View ArticleInversion sorting DOubt
Qstn:http://www.codechef.com/APRIL15/problems/CARLOSI don't need solution or Hint i have a doubt in questionConsider a example where i have performed a following operation for converting x to A...
View Articlecompute ((nCr) -1) modulo m
compute ((nCr) -1) modulo m :where m=1000003 and 1<=n,r<=1000000000
View ArticleWA in LEBOMBS
My program works well for almost every input but still it shows me "WA" can anyone help me? The link to my code is http://www.codechef.com/viewsolution/6683373
View ArticleSTRAB - Editorial
PROBLEM LINK:PracticeContestAuthor: Vitaliy Herasymiv Tester: Istvan Nagy Editorialist: Amit PandeyDIFFICULTY:Easy-Medium.PREREQUISITES:Counting, Dynamic Programming, Recursion.PROBLEM:Given strings...
View ArticleNO REPLY FROM CODECHEF AT feedback@codechef.com
Can codechef tell me why they are not replying to my mails sent to feedback@codechef.com about asking explanation for my dropped long challenge ratings? Please Codechef, reply to my mail soon as they...
View ArticleAwesome resource for DS and Algorithms
Hi everyone!,i just want to share this link which consists of all the links and resources on different topics of Competitive ProgrammingData Structures and...
View Article