Some More Homework - Wrong Answer
For the problem Some More Homework, Why am I getting wrong answer? I have implemented in Java. Here is the code:import java.io.BufferedReader; import java.io.InputStreamReader; import...
View ArticleDirecti internship question
http://www.codechef.com/INTERN11/problems/INTRN01please tell me if it is a adhoc based question or we need to know certain things beforehand to solve it?
View ArticleOnline practice questions on java I/O and concurrency?
I am a beginner in java and I am looking for some online questions to practice on Java I/O(File operations) and concurrency(threads). Please suggest some online links to work out? TIA..
View Articledoubt in strcpy() function in c
i wrote the following program to convert postfix to infix expression.. /postfix to infix.working/#include<stdio.h> #include<string.h> #include<ctype.h> struct s { char arr[40][50];...
View Articlecodechef BUY1 GET1 problem
I am very much frustrated now..Please tell me what's wrong with my code? http://www.codechef.com/viewsolution/3969611 Its working fine on my lappy,but codechef is showing error.:-(
View Articlewa in spoj problem BST
Can someone please point out why the code giving WA for this problem http://www.spoj.com/problems/BST/I have just calculated height of nodes : http://ideone.com/WhPKUe
View ArticleTechnex'14 and FireEye, Inc. present Matheletics [prizes not dispatched even...
Matheletics is a mathematical contest (inspired from PROJECT EULER) where a sound knowledge of mathematics together with computational thinking will be essential to solve problems. The motivation...
View ArticleWho knows how to build an online community?
I am searching for an online community programmer to build the next generation of facebook. My idea is revolutionary. It would require the skills of a programmer that has SEO skills. A partnership...
View Articlenew helper
Hello everyone! I have started writing blogs on data structures and algorithms. Please take a view of my first post:http://sanugupta.wordpress.com/2014/06/03/getting-started-with-linked-list/Guys I am...
View ArticleHAREJUMP - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThe question requires some Mathematics and the whole system can be seen as State Transitions. The number of ways to reach a state(X) is equal to...
View ArticleA needle in the haystack
Could any one tell me how to terminate the program in this problem http://www.spoj.com/problems/NHAY/
View ArticleMAXCOUNT: Why Runtime Error SIGSEGV?
[My Code][1] http://www.codechef.com/viewsolution/3971016Please Help!
View ArticleCompilation Error: itoa
why does the compiler doesn't recognize itoa string function. I have included <string> and <stdlib> header file.here is the exact error code : prog.cpp: In function �int main()�:...
View ArticleGiven a BST, find all sequences of nodes, that will generates the same bst.
Given a Binary Search Tree, generate all the sequences which would create the same binary search tree. For eg: if bst is 5 / \ 3 7 then output: 5 3 7 5 7 3If bst is: 5 / \ 4 7 / / \ 1 6 10 then output:...
View ArticleKoicost Spoj
http://www.spoj.com/problems/KOICOST/ I'am not able to understand the problem correctly. It says "While there is a path between vertex u and v, delete the edge with the smallest weight. Cost(u,v) is...
View ArticlePYTHON TLE JAVA AC!!
I am getting a TLE in my python code whereas a code with the same complexity of O(n^2) in java, I am getting AC!! My solution link for python is:http://www.codechef.com/viewsolution/3971729 My java...
View ArticleNew Sorting Algorithm
I study in class 12, India. I have developed a new sorting algorithm. I dont have much knowledge about the names of sorting technique, ignore if you know this technique.Let the array is a[].int...
View Articlealgorithm of pouring water.
http://www.codechef.com/problems/POUR1this is a question i found while solving problems from pratice arena on codechef. I saw many solutions but could not understand the logic. On some of the posts i...
View ArticleI ask again !!!
Its been over 7 days since i have asked a question of spoj on the codechef forum http://www.spoj.com/problems/SCUBADIV/I ask again please explain me the approach of this problem
View Article