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

CAKEDOOM - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:SIMPLEPREREQUISITES:Greedy AlgorithmsPROBLEM:The problem requires you to output the lexicographically smallest possibility from the given “partial” arrangement...

View Article


Python vs Javascript Vs. HTML5 on web

Here's a short but useful article on - Python , Javascript ,HTML5 on web-- http://bit.ly/19Ohi6Q . I hope this gonna help every coder.. :) Thanks,

View Article


Number of subsets

How to find number of subsets of a set containing N integers 1... N .while any of subset can not contain some of pair of integers. T : number of test cases N : input for each test case E : number of...

View Article

C Array Size

Whats the difference between doing a malloc and this code? ...to obtain an integer array of size n. int n; scanf("%d", &n); int arr[n]; Actually I was surprised that such a feature exists as it...

View Article

TLE - The ultimate explanation

Hello @all,This post is motivated by the excessive and overwhelming number of comments during SEP13 Long Contest about people getting TLE with 1.01 sec, while people with 10 sec or more get AC...These...

View Article


Linked list are allowed in codechef

Is using linked list not valid on codechef ? Or the compilers don't support it ??

View Article

SIGSEV in quicksort implementation

please help me fix the SIGSEV violation at line 5(acc to gdb) of this quicksort implementation @: http://ideone.com/i04HMG

View Article

find the output

#include<stdio.h> #include<conio.h> void main() { int i=4,j=-1,k=0,w,x,y,z; clrscr(); w=i||j||k; x=i&&j&&k; y=i||j&&k; z=i&&j||k;...

View Article


alien chef : runtime error

my code for the problem alien chef in easy problems is giving run time error but it works fine on my machine.Could you please help me to rectify the code.i think it is related to these things 1. i have...

View Article


coalscam WA!!!

hey after implementing the editorials i m still getting WA... plzzz..help me up http://www.codechef.com/viewsolution/2671811

View Article

maximum limit of unsigned long long

guys,a little help here,when i assign a value to the unsigned long long ,the compiler shows ,integer constant is too large for long type..but the strange thing is if i enter the same value using...

View Article

MAXIMAL SCORE PATH - WA

WA has been constantly.....poping in my screenhelp me out ....guys.....http://www.codechef.com/viewsolution/2518591

View Article

WA for CHMOD

Problem link : CHMODMy code : CHMODI know that this solution won't pass the time limit but I can't understand the reason for WA. Please help.

View Article


sigxfsz error???

can anybody tell me why i am getting this error??

View Article

LOLCODE Error :(

Here is a simple code:HAI 1.3 CAN HAS STDIO? I HAS A VAR VAR IS NOW A NUMBR GIMMEH VAR I HAS A B ITS PRODUKT OF 4 AN VAR I HAS A C ITS SUM OF 1 AN B VISIBLE C KTHXBYE I'm getting the error, 6: expected...

View Article


prims questions???

plz provide me with the prims algorithm questions???

View Article

test case generation

how to generate test cases for problem related to graph or grid with specified condition. for example for graph related problem i have to generate diffrent connected component of graph. just like...

View Article


Not getting the desired output for COOLING

Problem link : COOLINGMy code : COOLING

View Article

How to determine if double would be precise enough?

I was trying to solve the problem FTRIP Field Trip. I came to the conclusion that I have to calculate some binomial coefficients C(n,k). But the ranges were high. At the worst case I have to calculate...

View Article

What are the problems to be completed in the practice sessions so as to be...

Is it the easy session/medium/expert session in the practice to compete?

View Article
Browsing all 39796 articles
Browse latest View live


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