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

The Next Palindrome

I am unable to find the bug in this code.Please help me understand it.Thanks. http://ideone.com/Z62TxA

View Article


Image may be NSFW.
Clik here to view.

ANUBTT Editorial

PROBLEM LINK:PracticeContestAuthor:Anudeep NekkantiTester:Gerald AgapovEditorialist:Praveen DhinwaDIFFICULTY:HARD PREREQUISITES:Min Cost Max FlowPROBLEM:You are given tree with N nodes each node being...

View Article


ANUDTC Editorial

PROBLEM LINK:PracticeContestAuthor:Anudeep NekkantiTester:Gerald AgapovEditorialist:Praveen DhinwaDIFFICULTY:CAKEWALK PREREQUISITES:AD-HOC PROBLEM:Given a circle, you can make cuts at positive...

View Article

ANUSAR Editorial

PROBLEM LINK:PracticeContestAuthor:Anudeep NekkantiTester:Gerald AgapovEditorialist:Praveen DhinwaDIFFICULTY:MEDIUM HARD PREREQUISITES:Suffix Array, Suffix Tree, dfs, Segment tree, Fenwick Tree or BIT....

View Article

ups and downs ..WHAT WAS MY MISTAKE

include<iostream>using namespace std; void merge(long long int *A,int p,int q,int r) {int n1,n2,i,j,L[1000],R[1000]; n1=q-p+1; n2=r-q; for(i=1;i<=n1;++i) { L[i]=A[p+i-1]; }...

View Article


ANUBGC Editorial

PROBLEM LINK:PracticeContestAuthor:Anudeep NekkantiTester:Gerald AgapovEditorialist:Praveen DhinwaDIFFICULTY:EASY MEDIUM PREREQUISITES:dynamic programming PROBLEM:You are given an integer N. You select...

View Article

ANUUND Editorial

PROBLEM LINK:PracticeContestAuthor:Anudeep NekkantiTester:Gerald AgapovEditorialist:Praveen DhinwaDIFFICULTY:EASY PREREQUISITES:AD-HOC, sorting PROBLEM:Given an array A. Rearrange the array in such a...

View Article

merging two sorted linked lists

my code doesnt produce output.. please see where iam doing wrong as iam not so gud in dealing with pointers http://ideone.com/SFfesf

View Article


How to Solve this Problem?

DIVISION 1:Problem CPlease if someone could provide detailed explanation of this problem.I went through tutorial but couldn't follow much.

View Article


TABUS - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYPREREQUISITESBinary Search, Dynamic Programming, Graph TheoryPROBLEMYou are given N bus stations and M buses that run between these bus stations. Each bus is...

View Article

LEDIV - Editorial

PROBLEM LINKPracticeContestDIFFICULTYSIMPLEPREREQUISITESSimple MathPROBLEMYou are given a list of numbers. You have to find the smalelst number which divides all these numbers.QUICK EXPLANATIONTo the...

View Article

python vs Java ??

Somebody please answerHere is a very simple spoj question link http://www.spoj.com/problems/JULKA/my python code is getting WA where as the same logic Java code is getting AC why what am i...

View Article

working of the sizeof operator, containing expressions

I was asked a very interesting question by a friend, he gave me the following code and asked me, to explain the output of the code,include<stdio.h>int main() { int a=2; printf("%d ",sizeof(++a));...

View Article


MCARDS problem on spoj

how this problem can be solved using LIS dp method www.spoj.com/problems/MCARDS/

View Article

Runtime error

http://www.codechef.com/viewsolution/3960401 why Run time error? please help!!

View Article


Task - help

Can anyone help with this task.Given a sequence of N different integers. Operations allowed members of the series are:Move to the beginning of the sequence Move to the end of the sequence Print the...

View Article

getting TLE for KNAPSACK?

link to question is http://www.spoj.com/problems/KNAPSACK/this is a basic 0-1 knapsack problem , which gets TLE in Python 2.7 i implemented in 1D array not a 2D array even then it gets TLE . c++ gets...

View Article


Please Help

I have coded program for this problem . And i ran it on some random test cases and its giving right answer cause i checked it on spoj toolkit also. But then also its giving wrong answer. Please Please...

View Article

Very hard hashing question.

hey can someone please check my code for SSTORY problem http://www.codechef.com/problems/SSTORYhttp://www.codechef.com/viewplaintext/3937332 i am getting WA and i want to know the reason. i have used...

View Article

Scuba Dive

http://www.spoj.com/problems/SCUBADIV/I need to know how i can solve this problem. I know this can be solved by modifying the basic knapsack problem but i want a complete sort of tutorial for this...

View Article
Browsing all 40121 articles
Browse latest View live


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