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

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


can any one suggest whats wrong in this???

Q) http://www.codechef.com/MAY14/problems/CHEFBM my solution :-http://www.codechef.com/viewsolution/3896589

View Article


Wrong Answer verdict on TIDRICE problem

My solution for the problem TIDRICE seems to be correct. But on running on codechef judge, it says "Wrong Answer". I am not able to figure out the problem with my code, it seems to be working quite...

View Article

FACTMUL problem in SPOJ

question link:- http://www.spoj.com/problems/FACTMUL/ link to my solution:- http://ideone.com/U97WEX What's wrong with my code?Pls someone help

View Article

help me to solve the problem

how this problem can we solved using LIS dp method www.spoj.com/problems/MSTICK/

View Article

Invitation: HackerEarth June Easy Challenge

Hello everybody!We invite you to participate in HackerEarth's June Easy Challenge Event Date & Time: June 1 2014, 9:30 PM IST Event Link: June Easy Challenge | HackerEarthIf you are a beginner this...

View Article


Runtime error in LELEMONADE

i tried to build a faster solution but getting sigsegv can anyone help.thanks in advance!!my solution: http://www.codechef.com/viewsolution/3957761problem link: http://www.codechef.com/problems/LELEMON

View Article

PRIME1: pc's terminal prints correct output, SPOJ shows "Time Limit...

After trying to implement the sieve of eratosthenes and finally get it right (at least I think I did), the SPOJ result is time limit exceeded, tried to execute it in ideone to see how much time it...

View Article


getting error

IN visual studio output window successfully compiled , but getting error while compiling in code chef

View Article

How to solve this knapsack problem

How can i solve scuba dive question of SPOJ http://www.spoj.com/problems/SCUBADIV/

View Article


IMPLEMENTING HASH TABLE

how to implement own hash table in c programming language? plz help me !!!!!

View Article

Pairwise AND sum

They have given the constraints, in the subtasks and had not told about the task. So, please tell me where we have to use these constraints, for what?I have made a simple code for this question that is...

View Article

Transform the expression [SIGSEGV] ERROR

On submitting my code,i am getting [SIGSEGV] error.I am not able to find the cause of this error my code is given below#include<iostream> #include<stack> #include<string.h>...

View Article
Browsing all 39796 articles
Browse latest View live


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