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

MOU1H - Editorial

PROBLEM LINKPracticeContestDIFFICULTYMEDIUMPREREQUISITESSuffix Array, LCP ArrayPROBLEMYou are given a sequence of heights. You wish to find the number of unique contiguous subsequences in heights, such...

View Article


getting WA for fire escape routes FIRESC practice(easy)

please tell me... for what test case i am getting WA......http://www.codechef.com/viewsolution/2389557and also my program is taking too much time... explain me another way to optimize my program......

View Article


Changing bits-Hackerrank

Well I've been trying this question on www.hackerrank.com for the past 3-4 days but am still not getting the perfect score.The problem is that in my code http://ideone.com/kfql6T when I used unsigned...

View Article

Understanding Trie and its applications

Hey folks. I was going through data structures and came across TRIE ( prefix tree ) (I don't know much about it except for the fact that it is used for fast searching of stings and used in auto...

View Article

Codechef Long contest 2013 rating

i've participates in july 2013 long contest..but my rating hasn't changed yet..showing an error has occured.unable to find ur country code..i m not able to understand what is happening...even i've...

View Article


calculate..

someone please suggest how to perform arithmetic operations on ... 75!..80! n like wise actually i was solving a question on permutations n combinations but the foctorials are getting too long .. to...

View Article

GALACTIK - Editorial

PROBLEM LINKPracticeContestDIFFICULTYEASYPREREQUISITESDisjoint Set Data Structure, Simple MathPROBLEMThere are N nodes in a graph labeled from 1 to N. Each node has an associated cost with it, given by...

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


RIVPILE - Editorial

PROBLEM LINKPracticeContestDIFFICULTYMEDIUMPREREQUISITESShortest Path Problem, Dijkstra's AlgorithmPROBLEMYou are given N points in a plane. You are given M types of disks. Each disk has some cost...

View Article


firescape route........WA

plzz......guys help me out....whats wrong in my code eveytime gettting WA...though i have checked for a couple of test cases.#include<cstdio> #include<iostream> #include<list> #define...

View Article

InterView:Fruitful Websites

Hi folks,Please suggest me some good websites to prepare for job/internship interviews.I mean to say that where I can find good and correct stuff on basic trees,data structures and algorithms . It will...

View Article

NZEC error while running solution to problem :Rise and Fall of Power

Hello,I am encountering an NZEC error whenever I submit my python solution to the problem : The Rise and Fall of power.I have tested the code to be running successfully on my terminal prior to...

View Article

delay in codechef long rating ??

More than 5 days have passed and still no update. why is it taking so long for rating to come out ???

View Article


galactik july long

there were some cases like 4 0 -1 -1 -1 -1 which wer missing in test file of galactick so wat wil be done with solns dat wer giving wrong ans on dem..

View Article

the next palindrome

`my code is correct,but it's showing wrong answer please point out where i went wrong. #include <iostream>include <vector>using namespace std;bool palindrome(long long x){ vector<long...

View Article


prog.cs(2,18): error CS8025: Parsing error Compilation failed: 1 error(s), 0...

namespace experiment { class Program { static void Main(string[] args) { int t = int.Parse(Console.ReadLine()); List<int> lines = new List<int>(); for (int i = 0; i <t; i++) {...

View Article

10261 - Ferry Loading

hi, I m solving this DP problem on uva.. can any body explain the approach. link :http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1202thanks...

View Article


hello sir...!! it is giving me runtime sigsegv error can u plzzz tell me why??

#include<stdio.h> //#include<conio.h> #include<string.h> #include<stdlib.h> const int size=400; char infix[400],postfix[400],stack[400]; int top=-1; int precedence(char ch);...

View Article

CHRECT - Editorial

PROBLEM LINKPracticeContestDIFFICULTYCAKEWALKPREREQUISITESAd HocPROBLEMYou are given a grid of R rows and C columns. The rows are numbered from 1 to R from top to bottom. The columns are numbered from...

View Article

Warnings during compilation

Hi all.Marvellously, a large group of programmers believe in this golden rule of compilation: "Errors - Oh, No! Warnings - I Don't care!"Please! THIS IS NOT TRUE. WARNINGS ARE INDICATORS OF LURKING...

View Article
Browsing all 39796 articles
Browse latest View live


Latest Images

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