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 Articlegetting 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 ArticleChanging 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 ArticleUnderstanding 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 ArticleCodechef 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 Articlecalculate..
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 ArticleGALACTIK - 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 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 ArticleRIVPILE - 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 Articlefirescape 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 ArticleInterView: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 ArticleNZEC 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 Articledelay 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 Articlegalactik 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 Articlethe 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 Articleprog.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 Article10261 - 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 Articlehello 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 ArticleCHRECT - 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 ArticleWarnings 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