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

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 Article


kruskal VS prims

which is better to use and also can the PRIMS be used when the graph is disconnected ...

View Article


buy1get1 wrong answer help

http://www.codechef.com/viewsolution/3312318please help getting wrong answerproblem link http://www.codechef.com/problems/BUY1GET1

View Article

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

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


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

bellman ford

hey plz provide the links to bellman ford questions

View Article

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


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


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

Codex editorials for specops,subset sum

Could somebody tell me how to solve specops and subset sum?

View Article

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

Processing Subsets

How can I analyse all subsets of a set in nlog(n) time?

View Article


how to earn badges???

How to earn badges

View Article

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


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

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


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

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

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


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>