Wrong answer for CIRKILL; even though test cases show correct results
code deleted....!!!
View ArticleWhy 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 ArticleThreaded 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 ArticleSorting 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 Articlebytelandian 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 Articleprime1 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 ArticleCOUPON - Editorial
Author: Vamsi Kavala Tester: Roman Rubanenko Editorialist: Bruno OliveiraPROBLEM LINKSPracticeContestDIFFICULTYSimplePRE-REQUISITESSimple Math, Dynamic ProgrammingProblem:You are shopping to buy N...
View Articlei 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 ArticleHow 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 ArticleMountain 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 Articlediscrete 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 Articlemalloc 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 Articleprime 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 ArticleC 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 ArticleGenerating 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 ArticleIOI 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 Articleprime no. generation
please anyone provide me with fastest code for generating prime no.
View ArticleRanking of Lunch Time
Is there any rank list and rating list of lunch time to be declared? If yes, when???
View Articlewhats 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