Learning and implementing pure algorithms
@admin It'd be very helpful if direct problems on generally used algorithms were included in the practice section, I mean implementing the pure algortihm, no story to go along with it. It's fun to...
View ArticleRTE in java submission of problem DRGHTS
The problem link is http://www.codechef.com/problems/DRGHTS I failed to understand why my submission is getting RTE.The link to my submission is http://www.codechef.com/viewsolution/3469926 Please...
View Articleraking not updated
I have attended two long challenges and I solved 2-3 problem but at long contest ranking it showing "NA". What the reason for this.
View ArticleUNIQUE - Editorial
PROBLEM LINK:PracticeContestAuthor:Shiplu HawladerTester:Tasnim Imran SunnyEditorialist:Lalit KunduDIFFICULTY:HARD PREREQUISITES:Suffix ArrayLCP ArraySegment TreePROBLEM:We have a string of length...
View ArticleRanking not got
I have provided my country in my profile...even then my ranks for long and short contests have not been updated for a long time...I'm getting a note that my country code could not be found...!!! pls...
View ArticleFormal parameters of static storage class in C\C++
what problem it will cause if any language(C\C++) allow formal parameter of static storage class? I am asking more specific to C/C++ language.#include<iostream> using namespace std; void...
View ArticleChrome Extension for adding CodeChef problems to to-do list
I (along with @sparshgunner12 and @mainak22793 ) had earlier developed a Chrome extension called "CodeLater", which can be used as a to-do list for CodeChef problems. It adds a "CodeLater" button to...
View Articlewhy i am getting time limit exceed error
my code works perfectly on my laptop.....here it gives the time limt exceed error.here is my code. http://www.codechef.com/viewsolution/3471554
View ArticleLife, the Universe, and Everything else - JAVA
Why doesn't this code work?import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner s = new Scanner(System.in); while(true){ String str = s.nextLine();...
View ArticleCan't find the reason for SIGSEGV
I'm trying to solve this simple SPOJ problem http://www.spoj.com/problems/MICEMAZE/ . This is my current solution http://ideone.com/M2MUlb . It's giving me SIGSEGV runtime error at the 7th test case. I...
View ArticleDRGHTS-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 ArticleDISHDIS - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis was the Easy problem for this month. The problem is a standard combinatorics problem which asks us to find the number of solutions possible...
View ArticleOLYMPIC - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASY-MEDIUMPREREQUISITESsorting, factorials, inverse modulo a prime, basic combinatoricsPROBLEMThe problem is, given count[1..n], the number of chocolates to be...
View ArticleACMICL 2014 Problems
Are the questions of ACMICL 2014 available as Practice Problems? If not, please add them to the practice section.
View Articlewhy is it giving runtime error ?
the link of my solution is as followshttp://www.codechef.com/viewsolution/3475358
View ArticleHELLO Sir plzz clarify this compile time error .
Main.java:3: class TEST is public, should be declared in a file named TEST.java public class TEST ^ 1 error
View Articleignus deoria the great city...why i am getting wrong??
#include<iostream> using namespace std; struct node { int data; node *next; }; node *head; node *tail; int count; void push(int b,int n) { node *x=new node; x->data=b; x->next=NULL;...
View ArticleWhy no Summer Internship Contests ?
@admin and users : Don't you guys think that there should be hiring contests or something like that on Codechef, kind of like what they had on Hacker Earth this month. I mean we do have excellent...
View ArticleWCOUNT wrong answer
ok , i have a problem with modules and big numbers . could you tell me what is wrong with my solution to the word count problem . a failing test case would be also great.
View Articleunable to find the runtime error here in sums in triangle
/ * To change this template, choose Tools | Templates * and open the template in the editor. / package pract;/ * @author dell / import java.io.; import java.util.; class SumInTriangle { public static...
View Article