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

Help to solve Minimum Deletion RD19

Hi there, I am new in this forum, so please help me with your suggestions.. Earlier today I was trying to solve the problem under "Practice>Beginner" named "Minimum Deletion" tag:RD19 I know it's a...

View Article


quick code problem help

Can someone please tell me what is wrong in my code for KRILLIN . Here is my code. I maintained two S.T. for finding maximum element in range and for finding range sum.Then used binary search to find...

View Article


how to take input of arrow keys in c(currently using codeblocks)

HI there I have been working on developing a puzzle game in c. In order to do so , ill be needing to take input of arrow keys. Please suggest a suitable function to input arrow keys.Ive found one which...

View Article

how to find prime factorisation of a number?

How can I find the prime factorisation of a large number in linear time? large number implies that n>=10^9 and n<=10^18 and Is there any method to find the prime factorisation in constant...

View Article

CSUB - Editorial

PROBLEM LINK:PracticeContestAuthor:Lalit KunduTester:Shang Jingbo and Gerald AgapovEditorialist:Devendra AgarwalDIFFICULTY:Cakewalk PREREQUISITES:Adhoc PROBLEM:Given a string S consisting of only 1's...

View Article


Where did I go wrong in GOHAN problem?

Problem: GOHANMy Solution: SolutionMy approach: is that I solved it R = RRc = 1/SxCRl = SxLVin = (R+Rl+Rc)xCurrentVout = Rc X CurrentTherefore:itf = Vin/Vout = (R+Rl+Rc)/Rcon simplifyingitf = s^2(LxC)...

View Article

Time limit Exceeded in Discrepancies in the voters list

https://www.codechef.com/viewsolution/18888688

View Article

How to solve (GNY07H) spoj problem.

http://www.spoj.com/problems/GNY07H/

View Article


Why Codechef does not make contest problems test cases public after contest...

my humble request to @admin to share test cases of contest problems with editorial, or provide feature to see test cases during submission after contest gets over.. while practicing one get WA, TLE or...

View Article


whats wrong in my code for frieza

include<iostream>include<string.h>using namespace std;int main() {int t; cin>>t;while(t>0) {string s="";cin>>s;int ans=0; int c;string s2="frieza";for(int i=0;s[i]!='\0';)...

View Article

Quick Code

QUICK CODE (Rated)Knowing a concept and to be able to apply it are two very different things. It's time to apply your knowledge of algorithms to solve challenging questions in limited time.Exams always...

View Article

AMSGAME2 - Editorial

Problem Link:PracticeContestDifficulty:SIMPLEPre-requisites:Dynamic ProgrammingProblem:Given a sequences of N positive numbers A[0], A[1], ..., A[N-1], find how many subsequences of the integers are...

View Article

How to solve KRILLIN

https://www.codechef.com/QUCO2018/problems/KRILLIN

View Article


How to derive the formula for question Dr Geros Lab(GOHAN) in Quick Code

I am a bit weak in physics so I can't derive the exact formula for given circuit in [GOHAN][1] but by looking at others submissions I found out that it is 1-((R^2C)/(4L)) but don't know how they...

View Article

Vision problem of june 2018 challenge

https://www.codechef.com/viewsolution/18833187 this is link to my solution(for 25 points) for the problem can anyone tell whats wrong with it? also what's the concept for 100 points

View Article


Is it better to re-implement algorithms and DS or use our own created libraries?

I don't understand if it is better to create our libraries which I can use again and again in a competitive programming competition or is it better to re-implement them again and again.Pros for...

View Article

What is wrong in question GOHAN (NSIT_Div2)

Question GOHANContest - NSIT(Div 2) rated contest.What is the need of "fixed" for printing the final answer in this question?cout<<setprecision(10)<<1-rrc/(4*l); has not been...

View Article


BINSHFFL - Editorial

Problem LinkPracticeContestAuthor:Noszály ÁronTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyEASYPrerequisitesBFS/Floyd Warshall, ObservationsProblemYou are to convert number $A$ to number $B$...

View Article

graph Practice

from where I practice graph Questions to become a better programmer?

View Article

Number of nodes in a segment tree.

In the following implementation of segment tree, in the case when number of elements in the array for the range query, say A, are n such that n is not a power of 2, then I'm unable to establish that we...

View Article
Browsing all 39796 articles
Browse latest View live


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