Please delete my SnackDown Team.
Dear Admin, I am really sorry I have to write this on discuss forum. But I have sent more than 25 requests to help@codechef.com regarding deleting my team. Please delete my team with name,...
View ArticleHelp with beautiful arrays
I am getting wrong answer for the problem ICPC16B. Please help. The link to my submission is:https://www.codechef.com/viewsolution/13572487
View ArticleFCTRL - Editorial
PROBLEM LINK:PracticeAuthor:ADMINEditorialist:SUSHANT AGARWALDIFFICULTY:EASYPREREQUISITES:Basic looping,Basic Maths(Number Theory)PROBLEM:Find the Number of Trailing Zeroes at the end of...
View ArticleDidn't receive codechef laddus yet for April contrinutors list?
@admin I've not received codechef laddus yet for being top contributor April 2017, I had emailed to laddus@codechef.com but there was no response nor my laddus were awarded.
View ArticleDataBread:TOOL TO TRACK YOUR ALGORITHMIC RATINGS
Hello Coders,I take the pleasure in introducing you to Databread.DataBread is a platform where you can see an aggregate or generalised form of your ratings from major CompetitiveProgramming websites at...
View ArticleProgramming tutorials/guide blog for beginners
Hi,I've written few blog entries to provide some useful resources and problems to solve to help people get comfortable with the concepts. Check out them here : Dynamic ProgrammingSegment TreesSieves —...
View ArticleHelp needed for solving this problem based on graph
Given am array of N integers is it possible to design a simple graph of N vertices?.A graph considered simple if it has no self-loop r multi-edges. The condition is that each element of array should be...
View ArticlePlease help me debug my code for CRFTEST
I have a question for CFRTEST. I keep getting a WA. Here's my code:#include <iostream> #include <algorithm> #include <cmath> using namespace std; int main() { int cases; cin >>...
View ArticleICTAK04 - Editorial
Problem Link:https://www.codechef.com/ICTAK17/problems/ICTAK04Difficulty: Easy-MediumPrerequisites: LoopsProblem: Create a reverse pyramid of numbers for a given integer number. Explanation:In Reverse...
View ArticleICTAK05 - Editorial
Problem Link:https://www.codechef.com/ICTAK17/problems/ICTAK05Difficulty: Easy-MediumPrerequisites: Basic SortingProblem: You’re given an array ar and a number p. Partition the array, so that all...
View ArticleEfficient data structure for Intersection C++
Q1. What would be the time complexity to find intersection of two SORTED ranges or arrays? Which data structure or STL container would give the best time complexity?Q2. Does O(n2 * log(c)) pass in 2...
View ArticleSUPERMAN - Editorial
PROBLEM LINK:PracticeContestAuthor:Varun SinghDIFFICULTY:MEDIUMPREREQUISITES:Graph, BFSPROBLEM:Given a list of n songs, generate a playlist of 9 songs that satisfied the given...
View ArticleONP - Editorial [Transform the Expression]
Problem Statement:LinkDifficulty: Cakewalk <--> EasyPrerequisites: Concept of Stacks, Reverse Polish NotationThe Problem:The problem finally boils down to:You are given an algebraic...
View ArticleCHN08 - Editorial
PROBLEM LINK:ContestAuthor:???Tester:Kevin Atienza, Jingbo ShangEditorialist:Kevin AtienzaPREREQUISITES:Modulo, recurrences, pattern matchingPROBLEM:A function $f$ on integers is defined: $f(1) = A$,...
View ArticleTime complexity of vector's element deletion.
Hey guys! I was trying out a question on vector, and am stuck on this concept.Suppose i write this code-for(i=0;i< vec.size();i++) { if(vec[i]==5) { vec.erase (vec.begin()+i);//Statement 1. Erasing...
View ArticleFCTRL2 WRONG ANSWER
**Here is my block of code kindly tell me what i am doing wrong**#include <iostream> using namespace std; /* * */ int main(int argc, char** argv) { int testcase, n, i = 1; long fctrl = 1;...
View ArticleDHPC1701 - Editorial
PROBLEM LINK:ContestAuthor: Adabelle XieDIFFICULTY:CAKEWALKPREREQUISITES:NonePROBLEM:Given a number N and a string S, print out a line that contains N space separated repetitions of S.QUICK...
View ArticleDHPC1702 - Editorial
PROBLEM LINK:ContestAuthor:Adabelle XieDIFFICULTY:EasyPREREQUISITES:NonePROBLEM:Given 9 space separated integers, return “Cowboys” or “Lawmen” depending on if the sum of every other integer beginning...
View ArticleDHPC1703 - Editorial
PROBLEM LINK:ContestAuthor:Adabelle XieDIFFICULTY:Easy-MediumPREREQUISITES:DP, knowledge of the Fibonacci sequence is helpful but not necessary PROBLEM:Print out the nth number of the Fibonacci...
View Article