Maxim and Progressions
wrote an O(n^2) algorithm...but repeatedly getting TLE....can anyone please confirm whether this problem demands even better solution or not?
View ArticleWA in BUY1GET1
I am getting wrong Answer in the problem BUY1GET1 . This is my code #include<iostream> #include<vector> #include<string.h> #include<algorithm> using namespace std; struct S{...
View ArticleFORGETPW TEST CASE OUTPUT FORMAT
What will be the output for 1 0 . means if the string only contain '.'
View ArticleForgot Password
by any chance 123.456e+5 is not considered as possible output or it is not decimal number. Right?
View ArticleWhere can I learn the competitive programming in a systematic way?
I know that there are really good tutorials available at topcoder, but if a beginner wants to go from basics to advance to level. What are the things needed to do for that systematically?
View ArticleHow to convert a HEX string to equivalent HEX or DEC number?
Let String s= "1A" and I want to assign equivalent HEX value 1A or DEC value 26 to a integer. What are some efficient way of doing it?like to decimal to string conversion is done by char c[10];...
View Articlehow to display output
is it necessary to write the output of all test cases together after scanning the input?
View ArticleFind out two number from a series which is composed by these two numbers
series 7,9,79,97,77,99,777,999
View ArticleHelp with the algorithm please!
I found this question on a website.Your team is playing a chess tournament against a visiting team. Your opponents have arrived with a team of M players, numbered 1,2,…,M. You have N players, numbered...
View ArticleAlgorithms To Solve Problems and Books to Follow
Prime Miller RabinMatrix Recurrence + Fast Modulo Multiplication for countingStable Marriage ProblemGaussian EliminationNumerical Integration/DifferentiationLine ClippingAdvanced Maths Ad-Hoc...
View ArticleIn codechef do we have to print all output at same time, or each output after...
I am bit confused. Please tell me if I have N test cases, and if I print output after completion of a test case will this be considered as correct output? or I have to print all outputs together after...
View Articlec++ string and operator[]
The difference between operations:string s; s[0]= 'a'; cout<<s; gives nothing as output.string s; s+= 'a'; cout<<s; output: 'a'.string s= " "; s[0]= 'a'; will also print 'a'Can anyone...
View ArticleWhere can I learn the competitive programming techniques and algorithms in a...
I know that there are really good tutorials available at topcoder, but if a beginner wants to go from basics to advance to level. What are the things needed to do for that systematically? I'm a...
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 ArticleForgot Password runtime error help!
I am writing code in Java. It is showing Runtime Error NZEC I have tested for all possible inputs, and i am getting output as expected. I don't know where I am going wrong. Someone please give me few...
View ArticleWhat is the best algorithm to find the most occurrence of a word in text?
Does anyone know what is the best algorithm to find the most occurrence of a word in text (very large), so hash map is not a solution I'm looking for. I'm thinking of either "Trie" or "Suffix Array"...
View Articlequestion are too hard to understand....
hello , I am new to the site, like any other newbie I decided to test the waters in the easy section. what I felt after reading a few question was "wtf" . Is there any way to simlipy the question, so...
View ArticleDifferent return values
I have a function returning 8 for double return type and 7 for long return type. Am not posting the function since its someway related to the ongoing contest. Can anyone pls tell me why it happens so?...
View ArticleOutput of LEBLOCKS
Can Someone explain the output of the question "little elephant and blocks"....??
View Article