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

Wrong answer for CIRKILL; even though test cases show correct results

code deleted....!!!

View Article


Dynamic Programming

What is the best source of learning Dynamic Programming?

View Article


Why this code gives runtime error

#include < stdio.h > void main() { int i = 0; int T; int N; printf("Enter the 'T' value : "); scanf("%d",&T); for(i = 0;i<T;i++) { printf("Enter the 'N' value"); scanf("%d",&N); int...

View Article

Threaded binary tree and morris traversal

can anyone explain me threaded binary tree and how we can do inorder traversal with the help of this.(an example will we useful) thanks in advance reply soon please

View Article

Sorting strings in C

I was trying to sort c-strings using qsort(). Below is the comp function.> int comp(const void *a,const void *b) > {const char **ia=(const char **)a; > const char **ib=(const char **)b; >...

View Article


bytelandian gold

import java.io.BufferedReader; import java.io.InputStreamReader; class test { public static long coin(long n) { if((coin(n/4)+coin(n/3)+coin(n/2))>n) { return coin(n/4)+coin(n/3)+coin(n/2); } else {...

View Article

prime1 medium

import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; class test { static ArrayList<Integer> a = new ArrayList<Integer>(); public static boolean...

View Article

COUPON - Editorial

Author: Vamsi Kavala Tester: Roman Rubanenko Editorialist: Bruno OliveiraPROBLEM LINKSPracticeContestDIFFICULTYSimplePRE-REQUISITESSimple Math, Dynamic ProgrammingProblem:You are shopping to buy N...

View Article


i managed to learn c. now what should be my next step?

i am a beginner. i have finished learning c. what should be my next step??

View Article


How to find my friend ?

How Do I find my college mates in Codechef ? Is there any direct means to find members by college name...?

View Article

Mountain Holidays Problem statement not clear

Can someone please explain me the problem statement of mountain holidays. In the problem it states "Two climbs, say i1 to j1 and i2 to j2, are different if and only if (j1 – i1 != j2 – i2) or...

View Article

discrete mathematics

want to know good courses on discrete mathematics on coursera or udacity or nptel and also suggest a good book as it is also very necessary

View Article

malloc vs std::vector

please could anyone tell me is malloc a better way of declaring a variable 2d array or std::vector(i mean to ask which ones faster ?)

View Article


prime number : Sieve of Eratosthenes

import java.io.BufferedReader; import java.io.InputStreamReader;class test4 {public static void main(String[] args)throws Exception { BufferedReader br = new BufferedReader(new...

View Article

C tutorials

Hello, I have a reasonably knowledge regarding java and I would like to learn the C language, it's just curiosity and I want to have a better understanding of the lower level languages (comparing to...

View Article


Generating test cases

How to generate good test cases such that all the cases like corner cases or any hidden case can be covered in that.And how any online judge generate test cases both for straight forward and challenge...

View Article

IOI 2013 grader and/or test data

Does anyone know of a place (a grader) where I can submit a solution to a problem of IOI 2013 online. Can I get the test data somewhere on the net? I want to check my solution to a problem.

View Article


prime no. generation

please anyone provide me with fastest code for generating prime no.

View Article

Ranking of Lunch Time

Is there any rank list and rating list of lunch time to be declared? If yes, when???

View Article

whats wrong with dis code? the problem is internet media types...........the...

n,q=map(int,input().split()) d=dict() for i in range(n): s1,s2=map(str,input().split()) d[s1]=s2 for j in range(q): s3=input();k=len(s3) if '.' in s3: j=s3[::-1].index('.') i=k-j-1 value=s3[i+1:] if...

View Article
Browsing all 39796 articles
Browse latest View live


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