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

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 Article


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


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

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

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


DEVCLASS - Editorial

PROBLEM LINK:PracticeContestAuthor:Praveen DhinwaTester:Hiroto SekidoEditorialist:Kevin AtienzaDIFFICULTY:EASYPREREQUISITES:Ad hoc, string processing, greedyPROBLEM:Given a string s of length n...

View Article

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

about stoi

please explain stoi bcz its showing error in dev ++

View Article


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


error while using stoi in dev c++

pls provide a soln for using stoi error is stoi is not declared in scope

View Article

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

QTREE2,SPOJ

getting runtime error on spoj link:http://www.spoj.com/problems/QTREE2/ my code :https://ideone.com/svhHtv

View Article

Please Explain this Question - http://www.codechef.com/problems/ARAN06

What is the problem main objective...

View Article


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

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


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

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


campus.codechef.com

What's wrong with campus.codechef.com ? Why can't I login? Is the site down?

View Article

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

Help needed in CHEFBDAY

http://www.codechef.com/COMA2015/problems/CHEFBDAYPlease explain the logic?

View Article
Browsing all 39796 articles
Browse latest View live


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