How to improve and how to train: My personal experience and humble request
Hello @all,Following the series of tutorials I have been writing, I decided I would do something different this time, but equally important! I'm talking about analyzing the "lower-bound" of programming...
View ArticleHow to insert a struct into a set in C++?
how to insert a struct into a set based on first element of the struct?
View ArticleMONTRANS - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONYou just simply need to perform this procedure no more than 10000 times and at each step update the maximal profit and optimal number of times to...
View ArticleTLG:Even after spending half an hour on the statement and then sorting my...
my code is as:#include <iostream> #include "stdio.h" using namespace std ; int main() { int test,x,y,z,w,lead,max=0; cin>>test; if (test>10000) return 0; while(test--) { int sc1=0 ,sc2=0...
View ArticlePlz help me remove TLE...Simple Java Program...Plz..
Problem :: http://www.codechef.com/problems/DIVISORS/My solution :: http://www.codechef.com/viewsolution/2571262
View Articledata stuctures specific questions..!!
hey everyone .. !! i m new to relatively new to coding and wondering how do i find problems specific to a topic like trees or graphs..!! write now i have done quite a few problems in the easy practice...
View Articlebinary search base case
if(low==high) { if(a[low]==key) { return low; } else {cout<<"THE value doesnt exist"; return nill; } why is this base case not working for binary search
View ArticleGENARSEQ - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONFinding x[k] at each step directly by definition is very slow. Let's do the following. After we find some x[k] let's mark all numbers greater than...
View ArticleNo response from codechef team
@Admins, I have been constantly sending emails to codechef, about the decrease in rating after JULY13, I also don't see my name in the rank list here even though I have my name in the winners blog post...
View ArticleSORTING - Editorial
Problem Link:PracticeContestDifficulty:Easy-MediumPre-requisites:Persistent Data Structures, Segment Tree, Merge Sort TreeProblem:Find the number of comparisons that will be made during the sorting of...
View ArticleHackerrank Hack 101 Aug 2013 Contest .
Hello everybody , Yesterday night i participated in hacker rank contest and i solved one problem , VROOK My approach was something like this . Find a diff[n] ;where diff[i] = abs(p1[i]-p2[i]);Count the...
View ArticleHELLO: Wrong answer
I am getting a wrong answer for HELLO. The logic I used was that instead of calculating for one month, I calculated it for 36 months(as that was the max validity option)and then compare the prices. The...
View Articlehelp needed spoj..
i have been trying to solve this question since the last 2 days but am not able to get a good algo for this problem.can someone help me out in this one.?.http://www.spoj.com/problems/C1LJUTNJ/
View ArticlePlz..Plz...Plz...help me get rid of TLE...I am a new programmer(JAVA)..
Question Link :: http://www.codechef.com/problems/DIVISORSMy Solution Link :: http://www.codechef.com/viewsolution/2571296Regards,Akash (INDIA)
View ArticleEOF character in Windows
I was trying to use the fread() function to take a chunk of input. fread looks for EOF character to detect the end of input so when I was trying to manually provide input at the terminal I was not able...
View ArticleWA in IITKWPCO SPOJ
link texti am getting WA for my solutionlink textcan anyone plz tell where i am going wrong or any corner test case that i am missing??
View ArticleCHMOD - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYPREREQUISITESSimple Math, Repeated SquaringPROBLEMYou are given a list of N integers.Each value in the list is between 1 and 100.You have to respond to T...
View ArticleJava Oops Programming Concept
hey guys can you provide me questions on Oops concepts of Java from beginner level to advance level, not questions like we do in Procedural Prograaming, but purely using Oops concepts.
View ArticleMATRIX2 - Editorial
Problem Link:PracticeContestDifficulty:SimplePre-requisites:DPProblem:Calculate the amount of square submatrices of a given matrix which have ones on and above their main diagonal.Explanation:Sub task...
View ArticleHow do contests like CodeChef help you as a professional?
I'm still in high school, so I this question keeps popping into my mind.How do contests like CodeChef, TopCoder, USACO, etc., help with your day-to-day job as a programmer? Do you use the same...
View Article