choice of languages
actually this question is not regarding any particular topic AS such.. i m a starter in d vast world of coding. wen evr i look around i see a lot of languages, c,c++,python, java,ruby,haskell (to name...
View Articlekruskal VS prims
which is better to use and also can the PRIMS be used when the graph is disconnected ...
View Articlebuy1get1 wrong answer help
http://www.codechef.com/viewsolution/3312318please help getting wrong answerproblem link http://www.codechef.com/problems/BUY1GET1
View ArticleWA in RECIPE
I am getting WA for the problem link: http://www.codechef.com/problems/RECIPEand here is my solution id linkPlease help me with the problemThank you
View ArticlePLAYFIT - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis was one of the simple problems of this month. A lot of you were able to solve it easily. The constraints of the problem were such that only...
View ArticleBESTBATS WA
I tried doing BESTBATS, but somehow I am getting a WA. Can someone please see what the problem is? I have sorted the Score array and then, I have checked which all elements are common between the list...
View ArticleDESSERT WIZARD:WHAT IS WRONG IN MY CODE?
HERE IS A LINK TO THE PROBLEM : http://www.codechef.com/problems/DELISH AND THIS IS A LINK TO MY SOLUTION :http://www.codechef.com/viewsolution/3307572 CAN ANYBODY TELL ME WHATS WRONG IN THIS CODE? I...
View ArticleSRM 547 - Div2 - 500 - PillarsDivTwo
I am trying to solve the following problem - http://community.topcoder.com/stat?c=problem_statement&pm=12075&rd=14739 using the dynamic programming approach, and I have written down the...
View Articlebitwise operators
if(b&1) do these operators work only for numbers less than 16 bits?if no, then how it will perform these operations?
View ArticleCodex editorials for specops,subset sum
Could somebody tell me how to solve specops and subset sum?
View ArticleConfusion in recursion
int main() { int p=get();//get() function is called here itself.(get is user-defined function for input purpose.) } BUT when we talk of recursion, int abhilash(int a,int b) { int...
View ArticleLongest Common subsequence
Supposing that we have a string not in the classic form but in a form like that A1B1C1D2E1G1F1 A1B1C1D2F1P1X1where the numbers are the frequencies of chars.How can i work the longest common...
View ArticleNot able to get the math behind this
I saw a solutions to this problem, but I'm not able to get the logic i.e. why gcd will answer this question ?
View ArticleWhy is my code not working?
QUES=> Write a recursive function using pointers to determine whether a string is palindrome, Capitalization and spacing are ignored. Test your with the following two palindromes and at least one...
View Articlesegment trees
hey hi!!! my code is giving WA for this spoj problem...http://www.spoj.com/problems/BRCKTS/my code... http://ideone.com/TcrDnAthanx in advance for the help///
View ArticleSmall Factorial Run time error SIGSEGV
My solution:#include<iostream> using namespace std; #define MAX 160 int a[MAX]; int main() { int n,j,x,index,temp,i; a[0]=1; index=0; cin>>x; for(j=1;j<=x;j++) { cin>>n;...
View ArticleDivide by 0 contest
Hello @all,Sadly, I only saw that this contest was running when there were 15 min to its end... As such I couldn't submit a solution for a problem I really wanted to try out...Do you guys know if these...
View Article