Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 40121 articles
Browse latest View live
↧

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 Article


WA 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 Article


FORGETPW TEST CASE OUTPUT FORMAT

What will be the output for 1 0 . means if the string only contain '.'

View Article

Forgot Password

by any chance 123.456e+5 is not considered as possible output or it is not decimal number. Right?

View Article

Where 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 Article


How 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 Article

how to display output

is it necessary to write the output of all test cases together after scanning the input?

View Article

Find out two number from a series which is composed by these two numbers

series 7,9,79,97,77,99,777,999

View Article


where is course seo the best??

Hi all.. //POST DELETED

View Article


Help 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 Article

Algorithms 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 Article

In 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 Article

c++ 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 Article


Where 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 Article

LCPESY-Editorial

PROBLEM LINK:PracticeContestAuthor:ShipluTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:CAKEWALK PREREQUISITES:Ad-hocPROBLEM:Given two alphanumeric strings, find the number...

View Article


Forgot 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 Article

What 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 Article


question 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 Article

Different 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 Article

Output of LEBLOCKS

Can Someone explain the output of the question "little elephant and blocks"....??

View Article
Browsing all 40121 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>