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

BESTBATS : Getting Tle

I am getting a time limit exceeding error.Could someone tell me how to correct it? Thanks in advance. Here is the link to my code : http://ideone.com/bXRMve

View Article


ABCD from SPOJ

Here is the problem: http://www.spoj.com/problems/ABCD/ Can anyone rectify my code? I am getting an NZEC however I have tried all the testcases(available along with the problem and a few mentioned in...

View Article


Wrong answer for PALIN

The Next PalindromeMy code: http://www.codechef.com/viewsolution/2362069I have tested my code for many cases on my computer and it gives correct answer for all of them, but the online judge is not...

View Article

isn't the time limit too tight for non-C program ?

I'm a Java programmer. I have been practicing questions from the archived problems page (EASY) from top. I feel that I got TLE for almost 30% of the questions, EVEN THOUGH I implemented a solution that...

View Article

The probability of winning(PROB) 2nd test case ,solving approach?

can some one check this,is this the right way of solving?regarding the 2nd test case 2 3 4 1since t4 is 1, the possible outcomes after chef discarding 1 ticket is (1,3,4) with prob. (2/9)prob. of...

View Article


NUMFACT - Editorial

Author: Vamsi Kavala Tester: Roman Rubanenko Editorialist: Bruno OliveiraPROBLEM LINKSPracticeContestDIFFICULTYCakewalkPRE-REQUISITESSimple Math, Integer FactorizationProblem:You are given a very large...

View Article

HASHMAP help

can someone provide me with some codechef problems from practice section from which i can learn the use of hashmap clearly... P.S. i'm new to STLs. Thanks in advance.

View Article

C++ compiler

Which is the best C++ compiler ? How can we download and install GCC compiler and use it with VIM and EMACS editor to compile and run our code ? Thanks.

View Article


SIGSEGV error

can anyone tell me why the program at this link:http://www.codechef.com/viewsolution/2366766 is showing SIGSEGV error.

View Article


Will CodeChef provide test cases

It would be very good if CodeChef could provide a detailed set of test case for a given problem and at what particular test case did a particular code fail. This would be a really good initiative on...

View Article

Cheating practices alert!

http://www.quora.com/Permutations-and-Combinations/Say-uve-got-2-objects-of-A-kind-2-of-B-kind-and-1-of-C-kind-in-a-bag-you-pick-2-objects-randomly-possible-outcomes-are-5-0-2-1-2-0-1-2-1-0-1-2-0-1-1-1...

View Article

binary search tree deletion

can anyone give me pseudo code for deletion of two child node in binary search tree.please explain it also.any example will be great. reply soon thanks in advance

View Article

Use of codes during Contest

I wanted to ask whether it is allowed to use the codes from github profiles or any other online resource for the standard functions like binary search, LIS etc. , during a LONG/SHORT contest ?

View Article


VIM or EMACS

Which editor is better - VIM or EMACS ?

View Article

Cheating in JUNE13 DELISH question

@admin: I came across these 2 solutions: http://www.codechef.com/viewsolution/2214710http://www.codechef.com/viewsolution/2275720 which are exactly the same, even each and every variable is same....

View Article


can someone please provide me a link to the editorial of FCTRL in easy...

pls tell me the logic of the FCTRL program in easy section.

View Article

turbo cpp/tsort

can anybody pls tell wich sorting technique i need to use??i tried with quick sort and insertion sort..both got tym limit exceed...i did with faster i/o..still it s not working..pls help.....thanks

View Article


Ray casting algorithm proof(Point in polygon problem)

Can anyone provide me proof of Ray casting algorithm : http://en.wikipedia.org/wiki/Point_in_polygonThanks.

View Article

if i know java,is there any need for me to learn c++ or python?if yes,pls...

i realize that both c++,python and java are oops languages. so is knowing one of them sufficient?

View Article

virtual university of pakistan ( hindi lectures ? )

Site Link : http://www.vu.edu.pk/what are they trying ?

View Article
Browsing all 39796 articles
Browse latest View live


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