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

How to use this forum?

Is there brief description how is someone supposed to use this forum?I know the basics - someone asks question, for example with problem solution and the community helps to find the answer. 0k, that's...

View Article


Need help to solve TSHIRTS

Please help me how to solve this question https://www.codechef.com/problems/TSHIRTS

View Article


Payment Issue

Sadly, I am facing a dilemma.I made a big mistake and the payment for my team is still not done. I was busy with my majors and I tried doing the payment today and the SBI account didn't update the...

View Article

Uva 1047 Zones

Can anyone make a small editorial or explain me the solution of this question? Link to question: https://uva.onlinejudge.org/external/10/1047.pdf Thanks in advance.

View Article

How to solve ADJLEAF ?

How to solve ADJLEAF from CookOff?

View Article


Procedure for changing ICPC Team composition after qualifying for Onsite round

Can someone tell me the procedure in detail about how to change icpc team composition after qualifying for onsite round. One of our college's team has qualified for Amritapuri Onsite Regionals &...

View Article

ZCO 2018 discussion

Personally I think the question were a little harder than previous years. I managed to finish in 2hrs. First problem was prefix sums+ maths Second was greedy + implementation

View Article

Help in debugging code in Python

Hello folks,I have implemented segment tree in python for this code.It is running in some cases and for others abort is called in build function ( I checked that by debugging in Pycharm but I couldn't...

View Article


PERMEXIS - Editorial

PROBLEM LINK:PracticeContestAuthor and Editorialist:Lalit KunduTester:Kamil DebowskiDIFFICULTY:simplePREREQUISITES:logic, basic programming, sortingPROBLEM:You are given a list of integers $A_1, A_2,...

View Article


ONP - Editorial [Transform the Expression]

Problem Statement:LinkDifficulty: Cakewalk <--> EasyPrerequisites: Concept of Stacks, Reverse Polish NotationThe Problem:The problem finally boils down to:You are given an algebraic...

View Article

Disjoint Set Data Structure recursive find_parent gets wrong answer

I was trying to solve "Almost Union Find problem" from Kattis. I used disjoint set to solve this problem. My problem is, I got wrong answer when I used the following recursive find_parent function in...

View Article

ONCHESS - Editorial

Problem LinkPracticeContestSetter:Hasan JaddouhTester:Amr MahmoudEditorialist:Bhuvnesh JainDifficultyEASYPrerequisitesLooping TechniquesProblemFind a suitable match for every person depending on some...

View Article

ADJLEAF - editorial

Problem LinkPracticeContestSetter:Hasan JaddouhTester:Amr MahmoudEditorialist:Hasan JaddouhDifficultyHARDPrerequisitesDynamic programming on trees, combinatoricsProblemGiven a tree, for each node i...

View Article


Why is there no solution visible for ICO 2018 Preparatory Series ?

When will be its solution available ?[1]: [1]: https://www.codechef.com/ICOP1804

View Article

Image may be NSFW.
Clik here to view.

SIGFPE Runtime Error

What is SIGFPE Runtime Error and how can it occur?

View Article


Is there an easier method to solve this?

I came across the editorial of https://www.hackerrank.com/challenges/two-characters/problem but found it a bit complex. So, Is there any easier method to solve this using C++?

View Article

ITERATIVE method instead of RECURSIVE one to solve SPOJ GSS1 question

I'm trying to solve the spoj GSS1 using an iterative implementation of segment trees instead of a recursive approach. I have successfully built the segment tree but I'm finding it difficult to code the...

View Article


NOV Lunchtime Unofficial Editorial (SHUFFL)

Problem : SHUFFLHave you ever tried to solve Joshephus Problem. The problem is here : josephus. In joshephus problem we are basically removing 1 people each time by some rules indicated in the problem...

View Article

NOV LUNCH_TIME SMRSTR Unofficial editorial

problem: SMRSTRHere we are given an array D and an array X we have to calculate : for i = 1..N: X = floor(X / D[i]) for every value of XiThe above statement can be rewritten as : X = ( ( (X / D[1]) /...

View Article

My approach for SMRSTR(November Lunchtime)

Problem:- SMRSTRIt says that we have to optimize the code snippet given in the problem. We can observe that for every value in the X array we do the same thing by dividing it repeatedly by all the...

View Article
Browsing all 40121 articles
Browse latest View live


Latest Images

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