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

SMHTD - Editorial

PROBLEM LINK:http://www.codechef.com/SMHT2014/problems/SMHTDDIFFICULTY:EASY-MEDIUMPREREQUISITES:Longest Increasing subsequence.EXPLANATIONFor each element of modified sequence we have bi >= i...

View Article


SMHTC - Editorial

PROBLEM LINK:www.codechef.com/SMHT2014/problems/SMHTCDIFFICULTY:MEDIUM-HARDPREREQUISITES:Brute Force , BFS.EXPLANATION:The constraints make the problem to be solved by a Brute Force approach....

View Article


O(N) solution required

Given an array of numbers find all such triplets that satisfy the given condition.Condition: a[i] < a[j] < a[k] where I < j < k.

View Article

Where do I register for Codechef ID?

From where does i get the id required to participate in the contests ??

View Article

SMHTE - Editorial

PROBLEM LINK:http://www.codechef.com/SMHT2014/problems/SMHTEDIFFICULTY:CAKEWALKPREREQUISITES:None.EXPLANATIONThis problem can be solved by Brute Force. Dividing the number by 2 in a loop and checking...

View Article


Confusion regarding modulo operaor

Referring to this solution http://www.codechef.com/viewsolution/3331816 (got AC) for the question http://www.codechef.com/problems/CLMBSTRS, i came across teh confusion regarding modulo operator. I...

View Article

Difference between sort(begin(),end()) and sort(begin(),end(),compare)

what is the exact difference between them?

View Article

Why is my Answer wrong??

All submissions for this problem are available.For help on this problem, please check out our tutorial Input and Output (I/O) Your program is to use the brute-force approach in order to find the Answer...

View Article


Why is my answer wrong for The Guessing Game (Easy)?

include <stdio.h>include <string.h>int main(int argc, const char * argv[]) { int j,t;scanf("%d",&t); for(j=0;j<t;j++) { int k,i,truth=0,lie; char str[90]; char a; int b,n;...

View Article


country code & rank problem

why I don't see my rank? and why I don't have any country code?

View Article

SuperFunction

Can someone please explain the logic for (for SUBTASK 3 AND 4) http://www.codechef.com/LTIME07/problems/SFUNC of this question?! I m unable to get the same form editorial.

View Article

problem code:Flipcoin

i want to ask I don't know what algorithm to implement in this problem can you explained it. i almost give up on this.... i tried using array of bool that give me TLE for sure. i think about bitset too...

View Article

DP easy problems

Plz provide the link to easy DP problems on codechef/spoj

View Article


Maximum GCD of all pairs

I was thinking of problem : http://www.codechef.com/problems/BYTES4Given N integers, output the maximum value of GCD for all the pairs possible. How to approach this question? Please Help.

View Article

how to implement tutte matrix.?

i know that tutte matrix is used to check perfect matching in a given graph? and we make a skew symmetric matrix in it. but how to implement it? can anybody help me out.? Thanks in advance :) (PS : I...

View Article


Testing of own code.

Problems given has examples of very small size, when you try that you get correct answer and in less time. but, when the expected range is so long how to check that one. My question is can i get the...

View Article

A doubt in Java

I saw many programs containing objects but in all of them object was declared in static method. So, I have a following doubt.How to use the objects which are not defined in static methods ? Can you...

View Article


marbles logic helppppp

What is the logic of marbles in medium practice section...

View Article

CIELAB - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis is the easiest problem in the set. This problem can be solved various methods. For instance, if A - B mod 10 = 9, print A - B - 1, otherwise...

View Article

Marbles wrong answer

Can anyone tell me where I went wrong in the Marbles problem? I dont see any fault in my Solution.

View Article
Browsing all 39796 articles
Browse latest View live


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