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

Merge Sort Tree - Tutorial

Prerequisites : Segment TreesTarget Problem : Given an array of N elements and you have to answer Q queries of the form L R K , To Count the numbers smaller than K in range L to R.Key Idea : The key...

View Article


Getting started here, questions about strategy, etiquitte, etc.

Hi guys. I've just started here, I have a few questions about how I approach this place. Firstly, let me just say that wow - some of the problems here are pretty difficult, even for easy!Alright, so...

View Article


Playlist to become yellow/red on codechef, codeforces in just few months

Everyone wants to improve as soon as they can and reach the top of the leaderboard so I have found a website/community made by one of the best programmers of India Keshav Dhandhania . It looks that he...

View Article

Can't pass this graph question

Hi, Here is the problemhttps://www.hackerrank.com/challenges/beautiful-pathand this is my solutionlink texti am not abe to pass testcase 5,10,11,12,13. Can anyone help me figure out , what am i missing?

View Article

Why do I get an NZEC?

Why m i getting NZEC (Non Zero Exit Code) for my program?

View Article


TLG - Editorial

PROBLEM LINK:PracticeAuthor:ADMINEditorialist:SUSHANT AGARWALDIFFICULTY:EASYPREREQUISITES:Basic looping,ArraysPROBLEM:At the end of each round the leader and her current lead are calculated. Once all...

View Article

How to calculate ((a1*a2*a3.....*an)/(b1*b2*b3*...bn))mod n

I came across a problem whose answer is in the form of ((a1 x a2 x a3.....x an)/(b1 x b2 x b3 x...bn))mod n.All a and b are very large so actual multiplication and division are not possible.I know (a x...

View Article

HS08TEST - Editorial

PROBLEM LINK:PracticeAuthor:ADMINEditorialist:SUSHANT AGARWALDIFFICULTY:CAKEWALKPREREQUISITES:Basic looping,Basic Input/Output,Data TypesEXPLANATION:Please refer to the sample solution given by...

View Article


How to delete a team for snackdown, if we have already registered ???

I have registered a team for SnackDown 2017 , now I had few doubts1) how can I modify the team ... 2) how can I delete team(so that others can take that username ) ... And of course I have tried to...

View Article


Codechef long challenge incomplete

Why does codechef holds the long challenge when they are short of hard problems. Almost in all the long contests, less number of problems are released and the contest gets extended due to late...

View Article

How to sort questions with short descriptions?

How to find questions which have a short description?

View Article

Data Structures and Algorithms

Hi all, I need your help to make a list of most used data structures and algorithms along with their tutorials, implementation and some problems on them. It will be helpful to everyone in many ways. I...

View Article

Proposing New Features for Codechef Discuss

Codechef has been a very important part of my college life. I would like codechef to be the best website for programmers. Hence, I am proposing few features which I feel will make the Discuss Forum a...

View Article


What are karma points?

I am new to this karma system, Can you explain me why is it called so? What has karma points got to do with contribution?

View Article

FCTRL2 WRONG ANSWER

**Here is my block of code kindly tell me what i am doing wrong**#include <iostream> using namespace std; /* * */ int main(int argc, char** argv) { int testcase, n, i = 1; long fctrl = 1;...

View Article


Doubt in Time complexity

There is a question Chef and Numbers. According to Editorial it is purely based on FFT having overall time complexity $O(n * log(n))$. But after crawling other solution i found one of the solution...

View Article

"I want to ask a question" - Ask them all here!

Hello guys,As you all are aware, many times there are genuine users who wish to ask a question, but dont have karma for it. They then, have to resort to means of either asking their question in other...

View Article


Image may be NSFW.
Clik here to view.

Didn't receive codechef laddus yet for April contrinutors list?

@admin I've not received codechef laddus yet for being top contributor April 2017, I had emailed to laddus@codechef.com but there was no response nor my laddus were awarded.

View Article

C++ STL Priority Queue

Hello,I wanted to implement a priority queue using C++ STL priority_queue.I wanted to store a node in that priority queue. The structure of that node will be asstruct node{ int name; int val; }The...

View Article

Grundy Number

Can someone explain me grundy number as in how to construct it i read about it on topcoders and other websites but was not able to understand the concept behind it and how to construct it

View Article
Browsing all 39796 articles
Browse latest View live


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