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

NUM5 - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:EASY-MEDIUMEXPLANATION:The naive but wrong approach is to count the digits and print them in increasing order for smallest number (Let's call it S) and in...

View Article


RHT6 - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:MEDIUM-HARDPROBLEM:Find the maximum sum that can be formed without selecting adjacent elements.EXPLANATION:This problem is inspired by the SPOJ problem FARIDA.The...

View Article


ADD7 - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:EASYEXPLANATION:This is a straight forward question. Joey has to eat all the food in the fridge. So just adding all the numbers gives the answer.The solution will...

View Article

LNK1 - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:EASYEXPLANATION:This is a straight forward question. Link only defeats monsters which have a level greater than or equal to his. Initially Link's level is zero...

View Article

Programming tutorials/guide blog for beginners

Hi,I've written few blog entries to provide some useful resources and problems to solve to help people get comfortable with the concepts. Check out them here : Dynamic ProgrammingSegment TreesSieves —...

View Article


Square root Decomposition

What is Square root Decomposition? I was reading editorial of a problem on hackerrank and came acroos this term. I tried searching on google, read various forums but couldn't understand how this could...

View Article

100% attendance prize

Is there any way to check how much % attendance do i have ? I guess there should be something build so that one can check it

View Article

About goodies

Good day! I'm sorry, but will the goodies(like bags or sizes of T-shirts) update? Thanks!

View Article


WA in Prime 1

Link to Question : http://www.spoj.com/problems/PRIME1/my code shows wa .i have tried all test casehere is link to my code :http://ideone.com/UrBUUF

View Article


Next Steps for a Beginner

It's been a month or so since I started competitive programming. I am taking it step by step. I want to cover basics at first then move on to intermediate problems. I'v solved some 9-10 easy...

View Article

QCHEF - Editorial

PROBLEM LINK:PracticeContestAuthor:Fedor KorobeinikovTester:Hiroto SekidoEditorialist:Kevin AtienzaDIFFICULTY:MEDIUMPREREQUISITES:sqrt decomposition, preprocessingPROBLEM:Given a sequence of $N$...

View Article

CHEFDIV - Editorial

PROBLEM LINKPracticeContestDIFFICULTYeasyPREREQUISITESnumber theory, prime factorization, segmented sievePROBLEMA divisor tree with value at root $N$ is defined as follows. For each node of the tree,...

View Article

Image may be NSFW.
Clik here to view.

Bug on discuss

Here's another bug I noticed...recently I have commented in "About goodies" but it's still showing @vijju123 last commented.

View Article


clarification of suspended users

I see that @admin took a bold step in suspending users who are doing some illegal ways to earn karma or others. My question is, few of the Users who have suspended has a clear statement being mentioned...

View Article

Group For C++/C/Java/Python Students

Update: 8/11/16 created a group on edmodo, join via this link: https://www.edmodo.com/home#/join/2s9zicHello, friends I am a student. And a beginner in c++ programming. Friends i got an idea of...

View Article


Unofficial Editorial of the first 6 questions of April 2017

Hello guys,As many of you suggested me to write my editorials on a blog rather than Facebook page. I would like to take the opportunity to welcome you to my blog. I have added the April editorials, I...

View Article

Hackerearth: Micro and Sweets

Can anyone pls chk my code for this problem and tell me where am i getting wrong...

View Article


Which one is faster, sort() or qsort()?

People who code in C use the built-in QSORT, while C++ users prefer the SORT function. Looking through the documentation, I see that both have an average time complexity of nlog(n). But in GeekForGeeks...

View Article

CAPTAIN - Editorial

PROBLEM LINK:PracticeContestAuthor:Varun SinghDIFFICULTY:CAKEWALKPREREQUISITES:Geometry, Greedy, SortingPROBLEM:Given n line segments calculate whether one can form a non-degenerate triangle using...

View Article

FLAASH - Editorial

PROBLEM LINK:PracticeContestAuthor:Varun SinghDIFFICULTY:SIMPLEPREREQUISITES:DPPROBLEM:Given a number n, count minimum steps to reach 1 according to the given criteria.EXPLANATION:One can think of...

View Article
Browsing all 39796 articles
Browse latest View live


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