minimun sum
given a N*N matrix .. we have to choose N-1 elements elements such that all from diffrent row and diffrent column. and sum of elements are minimized.. any problem releted to this in codechef will also...
View ArticleCode for anagrams
I need anagram logic for a 5 lines passage entered by user. In java. Pls help asap.
View Articlefopen with modes "w" and "r"
how to combine both modes: "w" and "r" for fopen in a program
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 ArticleSEABAL - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYMEDIUMPREREQUISITESSegment Tree, Fenwick TreePROBLEMYou are given an ordered list of N integers that represents the number of ballons at each position.Also, you...
View ArticleSPCANDY - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYCAKEWALKPREREQUISITESSimple MathPROBLEMYou wish to equally distribute N candies among M people, using the following algorithmnCandies = 0 candies-with-each-person...
View ArticleAnagram String | Lexicographically Sorted
You are given n strings and you have to arrange anagram strings in separate line in order. for example:Input:n = 7 aabbcc acbabc abccba bcba ab aa abbc Output:aa aabbcc abccba acbabc ab abbc bcba...
View ArticleMouse movement detect in C
i was trying to write a programme in c language which can detect mouse movement, but the prograame which i have written can only detect the mouse click or scroll... the programme which i have written...
View ArticleMAXCOUNT- Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis was supposed to be a problem that anyone who knows basic programming could solve and I'm glad that it's satisfied our expectations.For the...
View ArticleFastest Way to compute a factorial. . .
I have been trying to work it out for a long time now. Many of the programming challenges involve frequent us of factorials which contribute to the solution of the problem. Needless to say, the value...
View ArticleProblem SPOJ - Even Count TLE
http://www.spoj.com/problems/GEEKOUNT/any idea what to do to make it small.. precomputing values till 10^6 also nt wrkin for 10^9 elements
View ArticleShow Time and Memory used in xcode?
If anyone uses mac, can you tell me how to see time and memory my code is using in xcode
View Articlewhat steps should be taken to improve myself in coding programs??
i m new to programming launguage... i could easily grasp its theory.. but when it comes to the practical part.. i find myself tough to code my own program.. what steps should i take to improve myself...
View ArticleMaxDiff wrong answer
Hi. I am getting wrong answer for the submission http://www.codechef.com/viewsolution/2541168. Can anyone help me on this? Thank you for your time.
View Articledynamic programming
please help me to solve this spoj dp problem. http://www.spoj.com/problems/TEMPTISL/and in general what should be my approach to solve dp problems which ask to count no of ways of doing something etc....
View ArticleWeighted interval scheduling when overlapping intervals are allowed?
I believe there isn't a solution of polynomial complexity to this problem:The question basically is that you have a cab company. It accepts bookings from K people. Every booking has a start time S and...
View ArticlePalindrome String C++ Suggestion for optimization
It's my code to find palindrome in string ,But it ain't a good piece.How can I optimize this code or is there any efficient algorithm for this type of problems...And I think for some cases it is also...
View Articleselecting c++ language
even though i am submitting my code in c++ and selecting the c++ lang in my submissions it is showing i submitted my code in c because of this i am getting compile error anyone please help
View ArticleHow 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 Article