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 ArticleMCARDS problem on spoj
how this problem can be solved using LIS dp method www.spoj.com/problems/MCARDS/
View ArticleRuntime error
http://www.codechef.com/viewsolution/3960401 why Run time error? please help!!
View ArticleTask - 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 Articlegetting 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 ArticlePlease 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 ArticleVery 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 ArticleScuba 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 Articlecan any one suggest whats wrong in this???
Q) http://www.codechef.com/MAY14/problems/CHEFBM my solution :-http://www.codechef.com/viewsolution/3896589
View ArticleWrong 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 ArticleFACTMUL 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 Articlehelp me to solve the problem
how this problem can we solved using LIS dp method www.spoj.com/problems/MSTICK/
View ArticleInvitation: 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 ArticleRuntime 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 ArticlePRIME1: 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 Articlegetting error
IN visual studio output window successfully compiled , but getting error while compiling in code chef
View ArticleHow to solve this knapsack problem
How can i solve scuba dive question of SPOJ http://www.spoj.com/problems/SCUBADIV/
View ArticleIMPLEMENTING HASH TABLE
how to implement own hash table in c programming language? plz help me !!!!!
View ArticlePairwise 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 ArticleTransform 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