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

Clarification on Karma farming

Hi everyone,We have received complaints about “Karma farming” from the community both here on discuss and via email. This post is just to let the community know, that we are currently looking into it...

View Article


ENTEXAM - Editorial

PROBLEM LINK:ContestPracticeAuthor:Sergey KulikTesters:Vasya Antoniuk and Kevin AtienzaTranslators:Vasya Antoniuk (Russian), Team VNOI (Vietnamese) and Hu Zecong (Mandarin)Editorialist:Kevin...

View Article


Image may be NSFW.
Clik here to view.

Operator Precedence - Table

Many times when I refer other people's code to contest problems, I find some people writing complex expressions without grouping them. This was hard to understand because I needed to refer the operator...

View Article

Logarithmic data structure inbuilt in python?

how do people who use python in competitive programming solve problems which require logn insertion , update , delete , search .. and ceil and floor functionality ..in java there are structures which...

View Article

Image may be NSFW.
Clik here to view.

DataBread:TOOL TO TRACK YOUR ALGORITHMIC RATINGS

Hello Coders,I take the pleasure in introducing you to Databread.DataBread is a platform where you can see an aggregate or generalised form of your ratings from major CompetitiveProgramming websites at...

View Article


spoj GSS1 problem

I have been trying to understand the solution of GSS1 problem from last 2 days but still not been able to get why are we maintaining the suffixsum and prefixsum of every node. here is the link to the...

View Article

SMARKET - Editorial

PROBLEM LINKPracticeContestDIFFICULTYmediumPREREQUISITESsegment tree, sqrt decomposition, offline processing of queries, binary searchPROBLEMYou are given an array $A$ of integers of size $N$. A block...

View Article

CDQU4 - Editorial

PROBLEM LINKS:PracticeContestAuthor:Animesh FatehpuriaTesters:Rajat DeSumit ShyamsukhaEditorialist:Animesh FatehpuriaDIFFICULTY:CAKEWALKPREREQUISITES:Traversal Through Strings.PROBLEM:Given a String S...

View Article


ASP - Editorial

PROBLEM LINK:PracticeContestAuthor:Jingbo ShangTester:Xiaoxu GuoEditorialist:Pushkar MishraDIFFICULTY:SimplePREREQUISITES:Ad-hocPROBLEM:Given an array $A$, output "YES" if the array is sortable by...

View Article


CHEFPRES - Editorial

PROBLEM LINK:PracticeContestAuthor:Kamran MaharovTester 1:Minako KojimaTester 2:Shiplu HawladerEditorialist:Pawel KacprzakDIFFICULTY:MEDIUMPREREQUISITES:Trees, dfsPROBLEM:You are given a tree of N...

View Article

Can this algorithm be used to form MST of graph?

Suppose we have a graph G, 1. We divide it into two graphs G1 and G2 2. Form mst of G1 and G2 using divide and conquer 3. Connect G1 and G2 with the lightest edge 4. Repeat until the mst of whole graph...

View Article

CHEFEXAM Editorial

Problem Link:ContestPracticeAuthor:Rajat DeEditorialist:Sidhant BansalDifficulty: Easy Pre-requisites: Sorting Quick Explanation: Sort all the subjects in descending order according to $C[i]$ and then...

View Article

MINMAGIC - editorial

Problem Link:ContestPracticeAuthor and Editorialist:sumeet-varmaDifficulty: MediumPre-requisites: - Segment treeProblem: Given N intervals(L[i], R[i]), you have to minimize the magic for Q queries...

View Article


CHEFCOL - Editorial

Problem Links:PracticeContestAuthor : Aman KediaTester : Himanshu JajuEditorialist : Aman KediaDifficulty: MediumExplanationLet us assume that there are x distinct coloured balls with chef and Bakku...

View Article

Minor Bugs on Snackdown Page

Hello, I have come across the following bugs on Snackdown page: 1. Clicking on any of the previous year event leads to the year section converting into a string rather than properly spaced numbers....

View Article


TWOSTR - Editorial

PROBLEM LINK:PracticeContestAuthor:Tasnim Imran SunnyTester:Istvan NagyEditorialist:Lalit KunduDIFFICULTY:CakewalkPREREQUISITES:basic programming, stringsPROBLEM:Chef wants to implement wildcard...

View Article

Python - Competitive Programming Tricks

I know that python is slower than C and C++ and is not preferred by many for competitive programming but I want to practice programming in python. So I thought of practicing some problems in python....

View Article


TRN2 - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:EASY-MEDIUMEXPLANATION:This is a straight forward question. The train can travel both ways and it takes the same time in both directions. Hence, for two stations...

View Article

APL3 - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:EASYPREREQUISITES:MathEXPLANATION:The apples can be shared with anyone. Instead of giving an apple to someone only when he needs, we can split the apples equally...

View Article

REV4 - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:EASY-MEDIUMPREREQUISITES:Bit ManipulationPROBLEM:Find the largest number of consecutive set bits in a given number.EXPLANATION:The problem becomes easy once you...

View Article
Browsing all 39796 articles
Browse latest View live


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