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

simple sum november long challenge 2015

why i am getting wrong answer in simple sum problem .here is my solution for third subtask my ans is showing wrong answer.detailed explaination http://ideone.com/SkihXn

View Article


EGRCAKE - Editorial

PROBLEM LINK:PracticeContestAuthor:Egor BobykTester:Istvan NagyEditorialist:XellosDIFFICULTY:SIMPLEPREREQUISITES:Greatest common divisor.PROBLEM:We have a permutation $\texttt{P}[0..N-1]$ with...

View Article


Dijkstra with multiplication between nodes

Consider a complete bidirectional weighted graph. Weight of each edge (a,b) is the probability of getting from a to b. So all weights are in range (0,1]. There is a path between a and b if the...

View Article

Image may be NSFW.
Clik here to view.

A tutorial on Suffix Arrays

Hello @all,This text will focus on the construction of Suffix Arrays, it will aim to explain what they are and what they are used for and hopefully some examples will be provided (it will be mainly...

View Article

Need help with Binary Search problem 'PIE' on spoj

Although this problem is tagged with "binary search" but still I am not able to come up with a solution using it. Please help with the underlying concept (solution and any further analysis also,if...

View Article


Priority_Queue..

I was trying to implement some data structures using priority queues just then i found something likepriority_queue< pair < int, int>, vector< pair< int, int> >, greater<...

View Article

Maximum Magic Walk - Editorial

Problem Link:ContestPracticeAuthor:sumeet-varmaTester:amankedia1994Editorialist:sumeet-varmaDifficulty: MediumPre-requisites: - Dynamic Programming, GraphsProblem: Find a walk in the graph for which...

View Article

Subarray Sum - Editorial

Problem LinkPracticeContestAuthorRishab PatiTesterRajat DeEditorialistRajat DeDifficulty MediumPre-requisites - Maths , Modulo , Pigeonhole PrincipleProblem: Find all numbers which will definitely...

View Article


Acyclic Graph- Editorial

Problem Link:ContestPracticeAuthor:amankedia1994Tester:legend-killerEditorialist:sumeet_varmaDifficulty: Easy - MediumPre-requisites: - Bipartite GraphsProblem: Given an acyclic graph with N nodes and...

View Article


What are the compiler options that the judge uses?

Some languages are weirdly slow on some problems. Do they have optimization enabled/disabled while compiling? Does the online judge use any specific options while compiling my program? Is there a way...

View Article

ZCO Practice Questions

ZCO Practice Contest Questions are unable to access in the Peer problems section.

View Article

Sources for INOI and IOITC preparation ?

Hi all, I'll be preparing for INOI this year(with hope that I clear ZIO/ZCO), so, what are some good books/websites/courses/or even anything at all that can aid one in preparation. Similar questions...

View Article

GCD on a tree - Editorial

PROBLEM LINK:PracticeContestAuthor:Aman KediaTester:Sumeet VermaEditorialist:Sidhant BansalPrerequisites - Centroid Decomposition Difficulty : Medium - Hard Expected Complexity: O(NlogNd) where d =...

View Article


Magical Strings - Editorial

PROBLEM LINK:PracticeContestAuthor:Sumeet VermaTester:Aman KediaEditorialist:Sidhant BansalPrerequisites - Pigeon Hole Principle, Disjoint Set Union Difficulty : Easy - Medium Expected Complexity:...

View Article

Poker Chips - Editorial

PROBLEM LINK:PracticeContestAuthor:Rishav PatiTester:Rajat DeEditorialist:Sidhant BansalDifficulty : Cakewalk - Easy Expected Complexity: O(A_MAX * N * N) Editorial -The array should be an arithmetic...

View Article


Count Permutations - Editorial

Problem Link:ContestPracticeAuthor:Rajat DeTestor:Aman KediaEditorialist:Rishav PatiDifficulty: Easy - Medium Topics: Basic Combinatorics, Recusive FunctionsProblem:- Given a number $n$ which is of the...

View Article

SEATR - Editorial

PROBLEM LINKPracticeContestPanel MembersProblem Setter:Sergey NaginProblem Tester:Istvan NagyEditorialist:Sunny AggarwalContest Admin:Praveen DhinwaRussian Translator:Sergey NaginMandarin Translator:Hu...

View Article


Implementation problem in segment tree problem

I am solving http://www.spoj.com/problems/HORRIBLE/ ,which is crashing on entering the first query.I am yet to implement the add function,but update function is not working .long long int a[10000000];...

View Article

Shinigami and Apples - Editorial

Prerequisites : DP , MathsDifficulty : MediumExpected Complexity : O(N*M + T).Editorial :The very first thing to observe is that since each of the apple received is distinct , one of the ways is surely...

View Article

Max Subarray GCD - Editorial

Prerequisites : Binary Search , GCD PropertiesDifficulty : Easy - MediumExpected Complexity : O(N * logn * p) , p = max number of steps to calculate GCD.Editorial :The most basic property of GCD is :...

View Article
Browsing all 39796 articles
Browse latest View live


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