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

inbuilt functions

does codechef not support inbuilt functions like ltoa? i got a warning for that.

View Article


ONP i think my logic is correct.... bt not gettng submittd.....need help

#include<iostream> using namespace std; void push(char ch); char pop(); int top=-1; char infix[400]; char postfix[400],stack[400]; int p=-1; int priority(char symbol); int main() { int t;...

View Article


C concepts

Hi, Can anybody tell me what is the advantage of using the below C concepts in embeddded systems (application wise) 1. pointers 2. Function pointers 3. structure 4. union 5. structure pointer 6....

View Article

A small doubt in Binary indexed tree

Given an array, 1-D, how e have to kake the corresponding BIT for that? ex. if the array is 10 8 5 9 1 what will the BIT for this?

View Article

segment tree with lazy update problem?

Hi, I am getting tle on this problem in UVA, http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2397 .. Here is my solution. I used segment tree...

View Article


BIT ALGORITHM

if anyone can please explain Binary Indexed Tree algorithm because i've read Top Coder tutorial and didnt get it i think it was somehow hard ! if someone can give a detailed explanation . Thanks

View Article

LOWSUM - Editorial

PROBLEM LINK:PracticeContestAuthor:Vineet PaliwalTester:Roman RubanenkoEditorialist:Jingbo ShangDIFFICULTY:EASYPREREQUISITES:Sort, Priority Queue, Binary SearchPROBLEM:Given two arrays A[1..K],...

View Article

Facebook Interviewstreet Sample Question

I have been trying to work on the sample problem on Facebook's Interviewstreet page for quite a while. Here is the problem:-An Arithmetic Progression is defined as one in which there is a constant...

View Article


Codechef Shirt

I heard that the top five contributers in Codechef Discuss get a t-shirt. How do these shirts look like? @kunal361,@kuruma?

View Article


code is not getting submitted

When I press the submit button, it doesn't give any verdict.

View Article

Time complexity of CUBE

@admin is the time limit too tight for the problem.My O(n^4) is getting a TLE.

View Article

Why I'm getting runtime error?

include <iostream>using namespace std;int factorial (int temp);int main() { int n,t; long long int q; cin>>t; while(t--) { cin>>n; for(int i=0;i<n;i++) cin="">>q; int...

View Article

bug on december challange

when i am on the december challange problems page:site said: "You are not authorized to access this page." but i am authorized? what is problem?

View Article


GRAVEL : codechef problem

What is the difference between following two codes?? One gives WA bt other gives AC.. took so many wa's? just the diff. of cout and printf();...

View Article

HOTEL-practice problem...what is my mistake??

include<iostream>using namespace std;int arrive[1000]; int leave[1000]; int main() {int test,n,max,count; cin>>test; while(test--) { max=0; cin>>n; for(int i=0;i<n;++i) {...

View Article


Confusion regarding grading.

In December contest I got a tick mark but the time limit is 1 sec and my time shows 1.14 secs.I am confused regarding will I be graded for this?

View Article

Confusion over scanf and getchar()

Well I was solving Buy1-Get1 from the practice problems(easy) and came across something strangeMy code would get accepted if i took the string input as follows and then did the neccessary...

View Article


TREEROOT - Editorial

Problem LinkPracticeContestDifficultySIMPLE-EASYPre-requisitesSimple MathProblemYou are given partial information of a binary tree: for each node, its id, and the sum of the ids of its children. This...

View Article

Code at boundary conditions

I am new to codechef.I am unable to solve problems in even the easy levels.There are always some runtime errors because i cannot allocate an data structure(array) with this much elements and so on.So...

View Article

Image may be NSFW.
Clik here to view.

ACCESS DENIED

View Article
Browsing all 40121 articles
Browse latest View live


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