what is your logic for ZCOPractice Problem Ipl?
Problem Link-https://www.codechef.com/ZCOPRAC/problems/ZCO14004Please explain your approach with code
View ArticleHelp me debugging TLG
why am I getting the wrong answer although my output is correct?! here's the Q:https://www.codechef.com/problems/TLG my code(c):#include <stdio.h> #include <stdlib.h> int r; int main() {...
View ArticleNeed help with CHEFBRO
Here's the ProblemWent through the editorial, it said something like grundy theorem and all which I didn't follow. Tell me some possible approach or a dummy solution.
View ArticleDoubt in SNAKEEAT editorial from snackdown?
In editorial of SNAKEEAT problem, can anyone please explain the offline approach in more detail.I am not getting the logic of this approach, what we are trying to achieve by calculating prefix and...
View ArticleCan you please review this Developer Profile web template ?
I developed a developer profile web template, can you please review it? Read this medium blog for more details. It is completely dynamic, one have to edit just a single file js/profile.json and...
View ArticlePlease help me in SUMQ
Please help me too, i had made this code for scoring 100 points as per the given constraints. I keep getting WA in some test cases, and i am not able to identify the case. Please help...
View ArticleANKPAL - Editorial
PROBLEM LINK:ContestPracticeAuthor:Ankit SrivastavaTester:Kevin Atienza and Gedi ZhengEditorialist:Kevin AtienzaPREREQUISITES:String processing, string polynomial hashingPROBLEM:You are given a string...
View ArticleHow to use BIT data structure for solving the ORDERSET problem of SPOJ?
While going through the editorial of the MBOARD problem I came up across the idea of solving the ORDERSET problem using the BIT data structure. I had solved the ORDERSET problem by augmenting a...
View ArticleCan anyone help me with The Next Palindrome problem?
I don't know why it is giving wrong answer. i tried it with many test cases but i still can't point out the issue. Problem iink and my solution link...
View ArticleCLONEME Editorial (Unofficial)
Problem LinkContset LinkPractice LinkPrerequisitesBinary SearchQuick OverviewGiven an array and two ranges you need to find whether the subarray lying in these two ranges have mismatch of less than 1...
View ArticleCAPIMOVE - Editorial
PracticeContestAuthor:Maksym BevzaTester:Arjun ArulEditorialist:Misha ChorniyDifficulty:SimplePre-Requisites:noneProblem StatementYou are given tree consisting $N$ nodes. Each node $i$ has value...
View ArticleTEAMFORM - Editorial
PROBLEM LINK:PracticeContestAuthor:admin2Testers:Hasan JaddouhEditorialist:Pawel KacprzakDIFFICULTY:CakewalkPREREQUISITES:NonePROBLEM:There are $n$ people and $2 \cdot m$ of them already formed pairs....
View ArticleNeed advise on CP (Job related)
why I should do CP? how it will help me in future in term of job in IT sector? I have just completed my 2nd year and will enter in 3rd year in august 2017. IS i am toolateforCP ? I know only basic data...
View ArticleD-Query Segmentation Fault Bug
I tried solving D-Query http://www.spoj.com/problems/DQUERY/ using Mo's algorithm, but my code keeps giving Segmentation Fault, have been trying for the past hour and still can't debug it. Would...
View Articleyour ACM-ICPC story..!!
hi all...as a newbie i wanted to all about ACM-ICPC contest....how to prepare for it and also tips from u...how u cracked it !!
View ArticleJune 2017 long: Problem PRMQ?
Hey guys, Can you explain your approach to solve PRMQ from june 17 long? I am aware BIT is being used in most solutions. I am not able to decipher how the thing works. Thanks!
View ArticleHow to read string with whitespace in C++?
Hi, I just want to know how I can get a string from stdin which contains whitespaces? I tried fgets and scanf("%[^\n]",str) but it's still not working
View ArticleTest cases to prove the solution will TLE
In the recently concluded Long challenge, in the problem "CLONEME", I wrote an optimal brute force solution. The solution is as follows : I stored the prefix sum, sum of square and sum of cubes of...
View ArticleSNELECT - Editorial
PROBLEM LINK:PracticeContestAuthor:Praveen DhinwaTester:Hasan JaddouhEditorialist:Sidhant BansalDIFFICULTY - Easy PREREQUISITES - LoopsPROBLEM - An array of $N$ animals, consisting only of snakes and...
View ArticleHow to solve CLONEME(JUNE17) for 30 and 100 pts?
What is the approach to solve CLONEME for 30 and 100 pts?
View Article