# general

**URL:** https://discuss.codechef.com/c/general/11.md

[Latest](https://discuss.codechef.com/latest.md) · [Categories](https://discuss.codechef.com/categories.md) · [Tags](https://discuss.codechef.com/tags.md)

---

## [About the general category](https://discuss.codechef.com/t/about-the-general-category/28513)

<div class="topic-metadata">

**Author:** [@system](https://discuss.codechef.com/u/system)\
**Replies:** 9\
**Last updated:** [August 17, 2026, 11:16am UTC](https://discuss.codechef.com/t/about-the-general-category/28513 "2026-08-17T11:16:56Z")

</div>

Start a topic if you want to discuss anything related to coding or computer science. CodeChef is a community of programmers from all walks of life. A lot of us are learning to program, or learning problem solving using …

---

## [Exam on Monday](https://discuss.codechef.com/t/exam-on-monday/126154)

<div class="topic-metadata">

**Author:** [@ans\_human\_2026](https://discuss.codechef.com/u/ans_human_2026)\
**Replies:** 3\
**Last updated:** [November 14, 2026, 2:54pm UTC](https://discuss.codechef.com/t/exam-on-monday/126154 "2026-11-14T14:54:20Z")

</div>

I am having my Java exams on next Monday. I do not know Java JDBC, AWT, Swing and Event Handling.

---

## [Free deterministic HLD simulator I built to practice System Design like DSA (HLDArena)](https://discuss.codechef.com/t/free-deterministic-hld-simulator-i-built-to-practice-system-design-like-dsa-hldarena/126153)

<div class="topic-metadata">

**Author:** [@dkyu021](https://discuss.codechef.com/u/dkyu021)\
**Replies:** 0\
**Last updated:** [November 10, 2026, 12:27pm UTC](https://discuss.codechef.com/t/free-deterministic-hld-simulator-i-built-to-practice-system-design-like-dsa-hldarena/126153 "2026-11-10T12:27:08Z")

</div>

While grinding DSA here on LeetCode, we get instant objective verdicts (AC, TLE, WA). But when preparing for High-Level Design (HLD) / System Design rounds, it’s mostly passive reading — you draw boxes and arrows with no…

---

## [The One with All the Candy Practice Problem in 1800 to 2000 difficulty problems](https://discuss.codechef.com/t/the-one-with-all-the-candy-practice-problem-in-1800-to-2000-difficulty-problems/126126)

<div class="topic-metadata">

**Author:** [@satyam\_mandal](https://discuss.codechef.com/u/satyam_mandal)\
**Replies:** 0\
**Last updated:** [November 2, 2026, 8:26pm UTC](https://discuss.codechef.com/t/the-one-with-all-the-candy-practice-problem-in-1800-to-2000-difficulty-problems/126126 "2026-11-02T20:26:27Z")

</div>

this problem had one test case , and according to me ans should be 87 not 95 can someone explain how 95 will be ans , it will help me identify where I am lacking Given Test Case 1 97 0 2 4 2 7 6 8 5 11 0 20 9 19 …

---

## [HP18 - EDITORIAL](https://discuss.codechef.com/t/hp18-editorial/21629)

<div class="topic-metadata">

**Author:** [@taran\_1407](https://discuss.codechef.com/u/taran_1407)\
**Replies:** 17\
**Last updated:** [November 1, 2026, 8:09am UTC](https://discuss.codechef.com/t/hp18-editorial/21629 "2026-11-01T08:09:55Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Setter: Hruday Pabbisetty Tester: Xiuhan Wang Editorialist: Taranpreet Singh DIFFICULTY: Simple PREREQUISITES: Game-Theory and Basic Math would do. P…

---

## [\#include \<bits/stdc++.h\> using namespace std; long long MaxSumSubarray(const vector\<long long\>& V)](https://discuss.codechef.com/t/include-bits-stdc-h-using-namespace-std-long-long-maxsumsubarray-const-vector-long-long-v/126115)

<div class="topic-metadata">

**Author:** [@labor\_tear\_06](https://discuss.codechef.com/u/labor_tear_06)\
**Replies:** 0\
**Last updated:** [October 31, 2026, 9:52am UTC](https://discuss.codechef.com/t/include-bits-stdc-h-using-namespace-std-long-long-maxsumsubarray-const-vector-long-long-v/126115 "2026-10-31T09:52:15Z")

</div>

find error give correct code

---

## [Time limit](https://discuss.codechef.com/t/time-limit/126092)

<div class="topic-metadata">

**Author:** [@cc\_cu\_356807](https://discuss.codechef.com/u/cc_cu_356807)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 6:06am UTC](https://discuss.codechef.com/t/time-limit/126092 "2026-10-28T06:06:16Z")

</div>

my codechef time limit got exceeded.

---

## [Tip: avoid integer overflow in C++ sums](https://discuss.codechef.com/t/tip-avoid-integer-overflow-in-c-sums/126089)

<div class="topic-metadata">

**Author:** [@relax\_tune\_20](https://discuss.codechef.com/u/relax_tune_20)\
**Replies:** 0\
**Last updated:** [October 27, 2026, 1:27pm UTC](https://discuss.codechef.com/t/tip-avoid-integer-overflow-in-c-sums/126089 "2026-10-27T13:27:26Z")

</div>

A common beginner mistake is multiplying or summing large values in a 32-bit int. If the result can pass about 2 billion, use long long instead. Also use 1LL when multiplying, for example 1LL \* a \* b, so the multiplicati…

---

## [BBP controlled XSS validation 20261025-2235](https://discuss.codechef.com/t/bbp-controlled-xss-validation-20261025-2235/126079)

<div class="topic-metadata">

**Author:** [@warm\_fest\_38](https://discuss.codechef.com/u/warm_fest_38)\
**Replies:** 0\
**Last updated:** [October 25, 2026, 10:34pm UTC](https://discuss.codechef.com/t/bbp-controlled-xss-validation-20261025-2235/126079 "2026-10-25T22:34:41Z")

</div>

Controlled CodeChef security test.

---

## [Efficient way to compute rolling view counts per video (sliding window) in PHP vs C++?](https://discuss.codechef.com/t/efficient-way-to-compute-rolling-view-counts-per-video-sliding-window-in-php-vs-c/126078)

<div class="topic-metadata">

**Author:** [@tower\_star\_54](https://discuss.codechef.com/u/tower_star_54)\
**Replies:** 0\
**Last updated:** [October 25, 2026, 5:07pm UTC](https://discuss.codechef.com/t/efficient-way-to-compute-rolling-view-counts-per-video-sliding-window-in-php-vs-c/126078 "2026-10-25T17:07:05Z")

</div>

I’m building a video sharing platform and need per-video view counts over the last 24h, updated often. Is a ring buffer of hourly buckets the standard sliding-window approach here, and is it worth doing in C++ or is PHP …

---

## [Test processing](https://discuss.codechef.com/t/test-processing/126072)

<div class="topic-metadata">

**Author:** [@demo\_s4](https://discuss.codechef.com/u/demo_s4)\
**Replies:** 0\
**Last updated:** [October 24, 2026, 5:43am UTC](https://discuss.codechef.com/t/test-processing/126072 "2026-10-24T05:43:06Z")

</div>

hi there hello there welcome who are you

---

## [Summary Power : What’s wrong with my code?](https://discuss.codechef.com/t/summary-power-what-s-wrong-with-my-code/126056)

<div class="topic-metadata">

**Author:** [@bt23cse026](https://discuss.codechef.com/u/bt23cse026)\
**Replies:** 0\
**Last updated:** [October 21, 2026, 8:36am UTC](https://discuss.codechef.com/t/summary-power-what-s-wrong-with-my-code/126056 "2026-10-21T08:36:49Z")

</div>

Summary Power : What’s wrong with my code? #include \<bits/stdc++.h\> using namespace std; int main() { int t ;cin\>\>t; while(t--){ int n,k;cin\>\>n\>\>k; vector\<char\>v(n); vector\<int\>c(n); …

---

## [Starters 260 rating not showing](https://discuss.codechef.com/t/starters-260-rating-not-showing/126054)

<div class="topic-metadata">

**Author:** [@ncs\_roblox\_fam](https://discuss.codechef.com/u/ncs_roblox_fam)\
**Replies:** 0\
**Last updated:** [October 21, 2026, 7:38am UTC](https://discuss.codechef.com/t/starters-260-rating-not-showing/126054 "2026-10-21T07:38:48Z")

</div>

I participated in Starters 260 a week ago, but today… There was NO display about my participation of Starters 260. And the rating says 1199 instead of 1299 as well!!! I humbly request the admins and workers of C…

---

## [Access restricted](https://discuss.codechef.com/t/access-restricted/126027)

<div class="topic-metadata">

**Author:** [@u2511cs010392](https://discuss.codechef.com/u/u2511cs010392)\
**Replies:** 0\
**Last updated:** [October 13, 2026, 8:41am UTC](https://discuss.codechef.com/t/access-restricted/126027 "2026-10-13T08:41:27Z")

</div>

Describe your issue access restricted Screenshot Additional info i went back to connect network and my access is restricted

---

## [Best DSA Roadmap for Beginners Preparing for Placements](https://discuss.codechef.com/t/best-dsa-roadmap-for-beginners-preparing-for-placements/125975)

<div class="topic-metadata">

**Author:** [@breezy\_note\_08](https://discuss.codechef.com/u/breezy_note_08)\
**Replies:** 1\
**Last updated:** [October 8, 2026, 9:28pm UTC](https://discuss.codechef.com/t/best-dsa-roadmap-for-beginners-preparing-for-placements/125975 "2026-10-08T21:28:28Z")

</div>

Hi everyone, I am a beginner preparing for coding interviews and placements. I am currently learning DSA using Java and solving problems on CodeChef/LeetCode. I sometimes find it difficult to decide which topics and pr…

---

## [Contest prize claim](https://discuss.codechef.com/t/contest-prize-claim/125997)

<div class="topic-metadata">

**Author:** [@manjas\_anand](https://discuss.codechef.com/u/manjas_anand)\
**Replies:** 0\
**Last updated:** [October 5, 2026, 11:54pm UTC](https://discuss.codechef.com/t/contest-prize-claim/125997 "2026-10-05T23:54:15Z")

</div>

I cannot clam the .tech domain of the starters 258 contest.

---

## [DSA vs AI/LLMs - What should a 2027 CSE student prioritize?](https://discuss.codechef.com/t/dsa-vs-ai-llms-what-should-a-2027-cse-student-prioritize/125991)

<div class="topic-metadata">

**Author:** [@army\_zest\_58](https://discuss.codechef.com/u/army_zest_58)\
**Replies:** 0\
**Last updated:** [October 2, 2026, 3:30pm UTC](https://discuss.codechef.com/t/dsa-vs-ai-llms-what-should-a-2027-cse-student-prioritize/125991 "2026-10-02T15:30:26Z")

</div>

As a 2027 CSE student, I’m finding it increasingly difficult to decide where to spend my time. On one side, there’s DSA and competitive programming — problem solving, algorithms, contests, and interview preparation. On…

---

## [How to arrive at invariance](https://discuss.codechef.com/t/how-to-arrive-at-invariance/125948)

<div class="topic-metadata">

**Author:** [@motom](https://discuss.codechef.com/u/motom)\
**Replies:** 0\
**Last updated:** [September 19, 2026, 9:14am UTC](https://discuss.codechef.com/t/how-to-arrive-at-invariance/125948 "2026-09-19T09:14:34Z")

</div>

If we write the observation on paper, we get something like 01001000100001. The 0s form AP 1,2,3,4… and the 1s are walls placed in between. If we observe the relationship b/w 0 and 1 we see for each group of 0s the 1s ap…

---

## [How should React polling reject responses from an old identity scope?](https://discuss.codechef.com/t/how-should-react-polling-reject-responses-from-an-old-identity-scope/125947)

<div class="topic-metadata">

**Author:** [@ethancolez](https://discuss.codechef.com/u/ethancolez)\
**Replies:** 0\
**Last updated:** [September 18, 2026, 6:43am UTC](https://discuss.codechef.com/t/how-should-react-polling-reject-responses-from-an-old-identity-scope/125947 "2026-09-18T06:43:37Z")

</div>

I am working on a React/TypeScript browser workflow that uploads one or more reference images, creates a long-running generation task, polls its status, restores up to eight recent tasks after reload, and later requests …

---

## [About in compiler issue](https://discuss.codechef.com/t/about-in-compiler-issue/125931)

<div class="topic-metadata">

**Author:** [@klu98250040004](https://discuss.codechef.com/u/klu98250040004)\
**Replies:** 0\
**Last updated:** [September 16, 2026, 6:38am UTC](https://discuss.codechef.com/t/about-in-compiler-issue/125931 "2026-09-16T06:38:38Z")

</div>

in my id some issues came some time some button not working plse check code chef team

---

## [MORE CONTESTS PLEASE](https://discuss.codechef.com/t/more-contests-please/116745)

<div class="topic-metadata">

**Author:** [@nolannolan](https://discuss.codechef.com/u/nolannolan)\
**Replies:** 13\
**Last updated:** [September 12, 2026, 7:07pm UTC](https://discuss.codechef.com/t/more-contests-please/116745 "2026-09-12T19:07:10Z")

</div>

Could you please put more contests in codechef ? Looks like a lot of other people have been asking for the same thing. It could help me and other people boost there rating up, encourage people to practice more and think …

---

## [Sunildavala](https://discuss.codechef.com/t/sunildavala/125901)

<div class="topic-metadata">

**Author:** [@solar\_youth\_12](https://discuss.codechef.com/u/solar_youth_12)\
**Replies:** 0\
**Last updated:** [September 8, 2026, 3:49pm UTC](https://discuss.codechef.com/t/sunildavala/125901 "2026-09-08T15:49:11Z")

</div>

sunil app running game

---

## [Submission is getting late](https://discuss.codechef.com/t/submission-is-getting-late/125895)

<div class="topic-metadata">

**Author:** [@cool\_life\_62](https://discuss.codechef.com/u/cool_life_62)\
**Replies:** 0\
**Last updated:** [September 6, 2026, 6:41am UTC](https://discuss.codechef.com/t/submission-is-getting-late/125895 "2026-09-06T06:41:12Z")

</div>

some concepts have wrong logic examples in c programming

---

## [How should TypeScript model mutually exclusive inputs in a two-mode form?](https://discuss.codechef.com/t/how-should-typescript-model-mutually-exclusive-inputs-in-a-two-mode-form/125873)

<div class="topic-metadata">

**Author:** [@ethancolez](https://discuss.codechef.com/u/ethancolez)\
**Replies:** 0\
**Last updated:** [September 1, 2026, 6:17pm UTC](https://discuss.codechef.com/t/how-should-typescript-model-mutually-exclusive-inputs-in-a-two-mode-form/125873 "2026-09-01T18:17:30Z")

</div>

I am working on a React and TypeScript form with two mutually exclusive generation modes: text\_to\_logo must not contain a source image. 2d\_to\_3d must contain exactly one source, either a newly selected File or an exist…

---

## [How should a dependent form converge after its capability graph changes?](https://discuss.codechef.com/t/how-should-a-dependent-form-converge-after-its-capability-graph-changes/125871)

<div class="topic-metadata">

**Author:** [@ethancolez](https://discuss.codechef.com/u/ethancolez)\
**Replies:** 0\
**Last updated:** [September 1, 2026, 4:22pm UTC](https://discuss.codechef.com/t/how-should-a-dependent-form-converge-after-its-capability-graph-changes/125871 "2026-09-01T16:22:47Z")

</div>

I am implementing a TypeScript form whose valid values form a dependency chain: model -\> mode -\> source image count -\> aspect ratio -\> resolution The server returns a versioned capability graph. A refresh can remove th…

---

## [Is dsa really that imp for placements](https://discuss.codechef.com/t/is-dsa-really-that-imp-for-placements/125870)

<div class="topic-metadata">

**Author:** [@swift\_peace\_89](https://discuss.codechef.com/u/swift_peace_89)\
**Replies:** 0\
**Last updated:** [September 1, 2026, 10:32am UTC](https://discuss.codechef.com/t/is-dsa-really-that-imp-for-placements/125870 "2026-09-01T10:32:36Z")

</div>

is dsa really that imp for placements

---

## [Another solution for APDIS](https://discuss.codechef.com/t/another-solution-for-apdis/125851)

<div class="topic-metadata">

**Author:** [@chiimo](https://discuss.codechef.com/u/chiimo)\
**Replies:** 0\
**Last updated:** [August 26, 2026, 4:41pm UTC](https://discuss.codechef.com/t/another-solution-for-apdis/125851 "2026-08-26T16:41:49Z")

</div>

Firstly use two-pointer to make the problem become something like to check whether a subarray is good. A key observation is that if there exist i → a\[i\]\>a\[i+1\] then you must erase one of them. So if there exist at least…

---

## [Why can't the CODECHEF repertoire contain good numerical analysis problems to be solved?](https://discuss.codechef.com/t/why-cant-the-codechef-repertoire-contain-good-numerical-analysis-problems-to-be-solved/125838)

<div class="topic-metadata">

**Author:** [@sibijm](https://discuss.codechef.com/u/sibijm)\
**Replies:** 0\
**Last updated:** [August 25, 2026, 2:19pm UTC](https://discuss.codechef.com/t/why-cant-the-codechef-repertoire-contain-good-numerical-analysis-problems-to-be-solved/125838 "2026-08-25T14:19:50Z")

</div>

The CodeChef repertoire of problems contains a large number of commercial and technological problems. Why can’t there be a separate section for numerical analysis on numbers and digits, based on their numeric and mathe…

---

## [More then a week after the contest why did my DSA rating go almost 60 points up?](https://discuss.codechef.com/t/more-then-a-week-after-the-contest-why-did-my-dsa-rating-go-almost-60-points-up/125837)

<div class="topic-metadata">

**Author:** [@sheepee](https://discuss.codechef.com/u/sheepee)\
**Replies:** 0\
**Last updated:** [August 25, 2026, 2:10pm UTC](https://discuss.codechef.com/t/more-then-a-week-after-the-contest-why-did-my-dsa-rating-go-almost-60-points-up/125837 "2026-08-25T14:10:22Z")

</div>

It does not show this on the graph. It is nice but why?My other rating also went up by 3 points

---

## [From Python to C++ Study Guide](https://discuss.codechef.com/t/from-python-to-c-study-guide/123359)

<div class="topic-metadata">

**Author:** [@nolannolan](https://discuss.codechef.com/u/nolannolan)\
**Replies:** 7\
**Last updated:** [August 22, 2026, 2:09am UTC](https://discuss.codechef.com/t/from-python-to-c-study-guide/123359 "2026-08-22T02:09:13Z")

</div>

MY DAD WROTE THIS NOT ME!!!

[Next page](https://discuss.codechef.com/c/general/11.md?page=1)
