LAPIN - Editorial
Problem Link:PracticeContestDifficulty:CakewalkPre-requisites:ad-hocProblem:Given a string S, if we split it in the middle (if S has an odd number of characters, disregard the middle character), then...
View ArticleDiscussion 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 ArticleMSTICK - 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 ArticlePREDICT (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 ArticleCHAORNOT 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 ArticleCheating 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 ArticlePREDICT - Editorial
Problem Link:PracticeContestDifficulty:EasyPre-requisites:ProbabilityProblem:In a game between team A and team B, you are given the probability that team A will win. If you bet M rupees on team X, and...
View ArticleTime 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 Articlegetting 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 ArticleTKCONVEX - 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 ArticleDiscrete 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 ArticleDiscussion 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 ArticlePERMUTE - Editorial
Problem Link:PracticeContestDifficulty:Medium-HardPre-requisites:ad-hoc, mathProblem:Given integers N and M, find how many permutations are there from 1 to N, such that the sum of adjacent numbers does...
View ArticleLEMOUSE - 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 ArticleCheating 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 ArticleCHAORNOT - Editorial
Problem Link:PracticeContestDifficulty:ChallengePre-requisites:local-searchProblem:Given a set of numbers, find a subset of maximum size that does not contain an arithmetic progression.Explanation:Let...
View Articlebest 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 ArticleWhy is Python 2.7 missing in this problem?
In the problem GCD2 I found that Python 2.7 is missing from the Judge. Why?
View ArticleSPMATRIX - Editorial
Problem Link:PracticeContestDifficulty:HardPre-requisites:Math, CombinatoricsProblem:You are given N. Count how many NxN matrices are there, satisfying the following conditions: (a) M[x][x] = 0 (b)...
View Articlejune challenge rankings
When will the final rankings of june challenge will be updated and the new ratings ?
View Article