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

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 Article


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


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

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

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


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

Image may be NSFW.
Clik here to view.

Technex'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 Article

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


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


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

Image may be NSFW.
Clik here to view.

TSORT: Whenever I try to run this code on my PC, it says TSORT.exe has...

View Article

A needle in the haystack

Could any one tell me how to terminate the program in this problem http://www.spoj.com/problems/NHAY/

View Article

MAXCOUNT: Why Runtime Error SIGSEGV?

[My Code][1] http://www.codechef.com/viewsolution/3971016Please Help!

View Article


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

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


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

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


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

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

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


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