Least denomination
At a cash counter in More retail store in India, for the cashier, system should recommend the change to be returned with least number of coins. Following are the denominations available in rupees and...
View ArticleTips for Graph problems
Hello @all,I wanted to ask you if you could reccomend me some Codechef problems about graph search algorithms only, if possible, in increasing order of difficulty :)I want to learn BFS and DFS...
View ArticleHow is rating calculated ?
I want to know how is the rated calculated for the codechef contests, for the long contest, short contest and lunchtime contests.The long contest now allows partial points also.Please explain how is...
View Articleplease tell what is wrong in my code ? spoj : the next pallindrome ?
include <stdio.h>include <string.h>int checkallnine(char str[]) { int i; for(i=0;i<=strlen(str)-1;i++) { if(str[i]!='9') return 0;} return 1; }int pallindrome(char str[]) { int lo,hi; lo...
View ArticleDEVCLASS editorial partly not understood..
I didn't understand the type1 and type2 part where t[0] is compared to s[i].What sequence is t?Is it BGBG.... or GBGB.... and why only compare it to t[0] and not with t[i]?
View ArticleDEVCLASS - Editorial
PROBLEM LINK:PracticeContestAuthor:Praveen DhinwaTester:Hiroto SekidoEditorialist:Kevin AtienzaDIFFICULTY:EASYPREREQUISITES:Ad hoc, string processing, greedyPROBLEM:Given a string s of length n...
View ArticleAwesome resource for DS and Algorithms
Hi everyone!,i just want to share this link which consists of all the links and resources on different topics of Competitive ProgrammingData Structures and...
View ArticleNoSuchElementException error
I am getting a NoSuchElementException error in the following code while running it here but I am not getting any error when I run it on eclipse.Any help would be appreciated .problem...
View Articleerror while using stoi in dev c++
pls provide a soln for using stoi error is stoi is not declared in scope
View Articlewhat is wrong with stoi
include<bits stdc++.h="">include<string.h>include<stdlib.h>using namespace std;int main() { string str1="10"; int i=0; while(str1[i]!='!') { i++; } // string...
View ArticleQTREE2,SPOJ
getting runtime error on spoj link:http://www.spoj.com/problems/QTREE2/ my code :https://ideone.com/svhHtv
View ArticlePlease Explain this Question - http://www.codechef.com/problems/ARAN06
What is the problem main objective...
View Articlei am really an amature in coding please any one can help what should i do to...
help me out in understanding the coding better
View ArticleHelp needed with this graph problem
Hello, i just learned graph and i saw this beautiful problem with tag bfs.I know how bfs works but cant figure out how to do this bfs.I need help with this.Your solution link with some description will...
View ArticleLONGEST INCREASING SUBSEQUENCE
I actually did this Question using 1D array and tested with many test cases and it is accepting it but on the online judge it is giving wrong answer Can anyone please pin point where my code is going...
View ArticleMergesort-->Again making problem
hello,i asked similar question two days back and i received answers too but still mergesort implementation is making problem.I did my previous implementation using arrays and now i did using vectors...
View Articlecampus.codechef.com
What's wrong with campus.codechef.com ? Why can't I login? Is the site down?
View ArticleHelp with KMP algorithm!!!
I have an issue with precomputation algorithm in KMP algorithm... I was reading it from Geeksforgeeks and I have a problem in understanding that else part Why do we do len=lps[len-1]?? When we do dont...
View ArticleHelp needed in CHEFBDAY
http://www.codechef.com/COMA2015/problems/CHEFBDAYPlease explain the logic?
View Article