Approach to become Good Programmer.
I really want to know that whats the ideal approach for becoming a good programmer? Whats the secret to solve the Codechef questions? Any External links, online tutorials, e-books are welcome. ANY help...
View Articlegetting SIGABRT error please help
I have commented my algorithm in my code http://www.codechef.com/viewsolution/3777817 i am getting SIGABRT error cant find the error please help.I have no idea about illegal instrctusion in c language...
View ArticleExtension for making sure you make private submissions on Ideone
For all those users, who use Ideone for compiling and testing their codes onlineGentle reminder, Ideone has 3 privacy settings:Public: Codes are available to everyone, even shown publicly in recent...
View ArticleLarge data set of codejam problem bullseye
How to handle the large data set of the following problem of codejam 2013.?https://code.google.com/codejam/contest/2418487/dashboard#s=p0what i did was just using this function for discrete binary...
View ArticleSPOJ - MTREE
I tried to solve this problem. But getting WA . I have used DFS to solve. Please help. I don't know where i am going wrong .http://www.spoj.com/problems/MTREE/My Solution - http://ideone.com/OVPROd
View ArticleWhy Wrong Answer : My BINTREE code ?
#include <stdio.h> #include<math.h> long int poww(long int to) { if(to==0) return 1; return 2*poww(to-1); } long int other_path(long int h,long int l) { long int path=0; while(h!=l){...
View ArticleNo Editorials for GERALD08 and LMATRIX3
When will the Editorials for the last two problems of APRIL14 long challenge GERALD08 and LMATRIX3 will be posted ??
View ArticleA tutorial on the Extended Euclid's Algorithm
Hello @all,Following my previous tutorial on Repeated Squaring, I will now focus on the Extended Euclid's Algorithm, which as you will be able to see, can be seen as the reciprocal of modular...
View Articleruntime error
Guys my code is working fine in Ideone but here it is giving runtime error. Can anybody help
View ArticleSNAPE - Editorial
Problem Link:contest, practiceDifficulty: CakewalkPre-requisites: Geometry, ImplementationProblem:We are given two numbers A and B. Our task is to determine the minimal and the maximal possible value...
View ArticleLOGO - Editorial
Problem Link:contest, practiceDifficulty: Medium-HardPre-requisites: Z-Buffering, Geometry, Stereometry, ImplementationProblem:We are given N polygons(triangles and quadrilaterals) in 3D. Our task is...
View ArticleWas my approach correct for Travelling Chef problem?
Although I wasn't able to code correctly this question http://www.codechef.com/COOK45/problems/TCP, but was my following approach correct for solving:The distance required as the output is basically...
View ArticleDIREL - Editorial
Problem Link:contest, practiceDifficulty: EasyPre-requisites: Graphs, Shortest path problem, Ad-hocProblem:We are given N persons and R binary relations(like "Vanessa is sister of Jack"). Our task is...
View ArticleLCPESY-Editorial
PROBLEM LINK:PracticeContestAuthor:ShipluTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:CAKEWALK PREREQUISITES:Ad-hocPROBLEM:Given two alphanumeric strings, find the number...
View ArticleWhat should I do to improve my performance on CodeChef?
I have been solving questions on CodeChef since almost an year,i have solved around 100 problems till now, and i solve an average of 3 questions per contest. But i don't know how to improve myself, Can...
View Articledeterminant of matrix
hello I am doing some problem which include part of finding greatest matching and perfect matching in graph. I found that it is easy to implement it by tutte's matrix. I read algorithm here. for (int...
View ArticleTCP - Editorial
Problem Link:contest, practiceDifficulty: MediumPre-requisites: Interpolation, Derivatives, IntegralsProblem:We are given 4 different points of the 2D plot of some cubic polynomial function F(t) and...
View ArticleHow is this solution getting AC?
http://www.codechef.com/viewsolution/3784470Can somebody tell me how is this getting accepted. I ran it on ideone and it is giving wrong answer for the sample test cases.
View Article