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

PREDICT - Editorial

Problem Link:- http://www.codechef.com/JUNE13/problems/PREDICTDifficulty: SimpleExpalnation:- Look at the sample test case and think it's a simple maths problem where you just have to divide the money...

View Article


C++ Vs. JAVA The unending time limit war

Yet again i was disappointed when my solution for spmatrix gave TLE in JAVA but was accepted in C++. The people managing the contests are pure geniuses, practically running the programming world. Why...

View Article


Cheating proofs in june long!

@admin : This june contest i found out some cheating proofs =>Check out these 2 solutions : first and secondUsers ranked 16 and 16 in june contest are a/c of same user.

View Article

DELISH - Editorial

Problem Link:PracticeContestDifficulty:SimplePre-requisites:Dynamic ProgrammingProblem:Given an array D[1...N], find max(abs((D[i] + ... + D[j]) - (D[k] + ... D[l])) : 1<= i <= j < k <= l...

View Article

WSTRING - Editorial

Problem Link:- http://www.codechef.com/JUNE13/problems/WSTRINGDifficulty: EasyExplanation: First we need to maintain the count for each character b/w two consecutive '#' signs, this we can do by taking...

View Article


Discussion of CHARORNOT .

Initially when I began to read papers on this problem , I found some papers which mentioned algorithms but they were just names and no other details . I found out some papers which mentioned algos like...

View Article

Problem with Tic Tac Toe Tomek- GCJ question

This is regarding the problem Tic Tac Toe Tomek asked in round 0 of Code Jam this year. link:tic tac toe tomek. I had got correct for both small and large input at code jam but it is showing WA here at...

View Article

same solution for COLLECT in june long

view this two solutions link textandlink text

View Article


Discussion for Just some Permutation 3

PERMUTEWell this was one of the most amazing and interesting ques.. But how to derive the formula based upon the the values of N and M.. And please some one provide link for Similar ques and study...

View Article


MSTICK - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESRange Minimum Query, Simple MathPROBLEMYou are given N matchsticks arranged in a straight line, with their rearends touching each other. You are...

View Article

PREDICT (explanation)

Problem Link:- http://www.codechef.com/JUNE13/problems/PREDICTDifficulty: SimpleExpalnation:- Look at the sample test case and think it's a simple maths problem where you just have to divide the money...

View Article

CHAORNOT TLE problem

Hi,The june contest was my first programming competition ever. This CHAORNOT problem was the first problem I tried to solve,but it kept on giving TLE.the code from my submission is...

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


Time Limit Exceeded TLE

I dont understand how to reduce the time limit. Please help The Problem is Prime Generatorimport java.io.*; class ttt { public static boolean isPrime(long number) { if(number==1) return false; for(int...

View Article

getting run time error.I am getting output in my editor.I cant find the error

#include<stdio.h> main(){ int t,b[100],v; static int q;scanf("%d",&t); while(t--){ int a[100],n,l,p=0,dif=0,max=0; scanf("%d",&n); l=n; for(p=0;p<n;p++) scanf("%d",&a[p]);...

View Article


Discrete Optimization/Algorithms Course

Hey Codermates there is this course I came across based on "Discrete Optimization" from the University of Melbourne hosted on coursera....... Since we all here are to much interested in Algorithmic...

View Article

best video lectures for recursion

suggest some video lectures to understand and apply recursion as i am really finding iteration lenghty and difficult to apply in trees and other abstract data type reply asap

View Article


june challenge rankings

When will the final rankings of june challenge will be updated and the new ratings ?

View Article

LEMOUSE - Editorial

Problem Link:PracticeContestDifficulty:SimplePre-requisites:Dynamic ProgrammingProblem:Little Elephant is coordinates (0, 0) of a NxM grid A. A[i][j] = 0 if there is no mouse in cell (i, j), else it is...

View Article

TKCONVEX - Editorial

Problem Link:PracticeContestDifficulty:Medium-HardPre-requisites:Math, Randomized AlgorithmProblem:You are given N sticks' lengths. You need to find two sets of K sticks each, such that each set can...

View Article
Browsing all 39796 articles
Browse latest View live


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