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

LFEB14B - Editorial

Problem Link:contest, practiceDifficulty: CakewalkPre-requisites: Implementation, MathsProblem:We are given array A[], that consists of N integers. We need to count the number of subsets of A[], whose...

View Article


Cheating Cases, Revisited February 14

Its really disgusting.Admin its high time for tough measures, cheaters cheat doesnt matter its long, cookoff or lunchtime.I think these users have developed their skills so as to cheat in 3 hr...

View Article


C++ resources

Hey there! I am trying to learn C++ so that I can use it to solve these competitive problems. Are there some good resources for learning it along with data structures and algorithms? I tried learning...

View Article

Want NFEB3 editorial

Can I get the NFEB3 editorial. Please some one describe the corner cases for the problem. My approach was - For every cell from top to bottom row wise check mtx[i-1][j-1] and mtx[i-1][j+1] and take the...

View Article

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 Article


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

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

UNIQUE - Editorial

PROBLEM LINK:PracticeContestAuthor:Shiplu HawladerTester:Tasnim Imran SunnyEditorialist:Lalit KunduDIFFICULTY:HARD PREREQUISITES:Suffix ArrayLCP ArraySegment TreePROBLEM:We have a string of length...

View Article


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


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

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

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

Life, 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 Article


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

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


OLYMPIC - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASY-MEDIUMPREREQUISITESsorting, factorials, inverse modulo a prime, basic combinatoricsPROBLEMThe problem is, given count[1..n], the number of chocolates to be...

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


ACMICL 2014 Problems

Are the questions of ACMICL 2014 available as Practice Problems? If not, please add them to the practice section.

View Article

why is it giving runtime error ?

the link of my solution is as followshttp://www.codechef.com/viewsolution/3475358

View Article

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


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