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

Programming Language to use

Hi,The only programming language I m familiar with is C#. But i see most of the guys using C, C++ or java.Do I need to learn one of these languages or is it fine with C#?

View Article


Virtual Contest..

Why doesn't codechef include the feature of virtual contest ? There were some really good contests held within the last 1 week but due to some issue i couldn't participate in them .It would be really...

View Article


Why downvote?

@gautam94 : What is your problem man? why are you down voting my comments? is there anything wrong in my answers?

View Article

Image may be NSFW.
Clik here to view.

Resistance- How do i fix this code ?

This is the code i have written for the resistance problem.I have written recursive functions to calculate numerator and denominator. In the end I am reducing the fraction by recursively dividing...

View Article

DRGHTS-Editorial

PROBLEM LINK:PracticeContestAuthor:Sergey NaginTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:EasyPREREQUISITES:Depth first traversalPROBLEM:Given a forest with N nodes, where...

View Article


INTEG : time limit exceeded

my solution here to the INTEG problem is giving me time limit exceeded and I cant figure out why or even give an example that produces TLE I checked the editorial and I believe I am using the approach...

View Article

Needed a simple understandable explanation of Hopcroft-Karp Maximum Matching...

I went through many articles, wiki page but I am not able to understand the concept behind it. I got the concept of augmenting path and how it increases by one every time untill max matching is found,...

View Article

how to make a wordpress plugin which post on visitors wall after some time

To post on your own wall i can use facebook auto post plugin. But if i want to post on visitors wall after sometime then how could it be implemented.The concept is same like...

View Article


Shortest Path in a Graph visiting all nodes atleast once!

I have been trying to solve following problem from topcoder practice problems:Problem LinkI have found one of topcoder user's solution, but I could not understand it. Can somebody please explain me the...

View Article


Code for the practice Problem Life, the Universe, and Everything'.Its giving...

include<iostream>using namespace std; int main() { int a; A: cin>>a; if(a==42) return 0; cout<<a; goto A; return 0; }

View Article

Code for the practice Problem Life, the Universe, and Everything'.Its giving...

include<iostream>using namespace std; int main() { int a; A: cin>>a; if(a==42) return 0; cout<<a; goto A; return 0; }

View Article

How to solve this segment tree problem?

http://www.codechef.com/AICL2014/problems/ACMICL04 . Can anyone give an approach to solve this segment tree problem.

View Article

IOPC14R : WA - Unable to understand where I'm getting the WA

The problem i'm trying to solve is the IOPC14R, viz. , LCS Returns.Now I did see the accepted solutions and are very similar to my solution . The thing is that I am getting a WA and dont know at what...

View Article


MARCHA2 - weird sitiuation

so, I am getting a very weird wrong answer for the Johnny and the Beanstalk problem . and here is my original solution.I even tried to mimic the accepted solution here with my solution here and I still...

View Article

Code for the practice Problem Life, the Universe, and Everything'.Its giving...

include<iostream>using namespace std; int main() { int a; A: cin>>a; if(a==42) return 0; cout<<a; goto A; return 0; }

View Article


Useless post

Post not relevant to forum

View Article

modular exponentiation help

http://www.codechef.com/viewplaintext/3493800 pls explain me the code...y he taking 1000000006 for processing the second string????....thanks

View Article


Editorial : Wilson's theorem

In number theory, Wilson's theorem states that a natural number n > 1 is a prime number if and only if ((n-1)!) mod n =(n-1)That is, it asserts that the factorial (n - 1)! = 1 * 2 * 3 *...

View Article

Little stuart and his teacher HackerEarth

Little Stuart is a smart guy, and he loves mathematics. Today his math teacher taught his class about common factors. After finishing the class his teacher asked them a question: For a given number "n"...

View Article

a-"maze"-ing

Can everyone please discuss the logic for this problem. I find the submissions a bit difficult to understand.

View Article
Browsing all 39796 articles
Browse latest View live