# CodeChef-DSA-learners

**URL:** https://discuss.codechef.com/c/codechef-dsa-learners/68.md

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

---

## [About the CodeChef-DSA-learners category](https://discuss.codechef.com/t/about-the-codechef-dsa-learners-category/58722)

<div class="topic-metadata">

**Author:** [@techie\_pals](https://discuss.codechef.com/u/techie_pals)\
**Replies:** 28\
**Last updated:** [August 13, 2023, 12:51am UTC](https://discuss.codechef.com/t/about-the-codechef-dsa-learners-category/58722 "2023-08-13T00:51:10Z")

</div>

This category is for the folks learning DSA together along with the community doing the DSA Learning Series How is this different? In this category, we encourage people to ask questions around the ongoing series, and …

---

## [Help me with code and optimisation also if possible](https://discuss.codechef.com/t/help-me-with-code-and-optimisation-also-if-possible/126042)

<div class="topic-metadata">

**Author:** [@worm\_angel\_51](https://discuss.codechef.com/u/worm_angel_51)\
**Replies:** 0\
**Last updated:** [October 17, 2026, 12:48pm UTC](https://discuss.codechef.com/t/help-me-with-code-and-optimisation-also-if-possible/126042 "2026-10-17T12:48:01Z")

</div>

PolyAdd https://www.codechef.com/learn/course/tiet-ucs301-dsa-c-2026/KJWHBF26/problems/POLYADDSLL?tab=statement

---

## [NOT MY FAULT LITERALLY](https://discuss.codechef.com/t/not-my-fault-literally/125949)

<div class="topic-metadata">

**Author:** [@kl2600031922](https://discuss.codechef.com/u/kl2600031922)\
**Replies:** 0\
**Last updated:** [September 20, 2026, 6:07am UTC](https://discuss.codechef.com/t/not-my-fault-literally/125949 "2026-09-20T06:07:42Z")

</div>

Describe your issue IT’S NOT MY FAULT BUT DUE TO LOST OF INTERNET CONNECTION OF THE UNIVERSITY WIFI THE GOT SWITCHED AND I LOGINED THER ITSELF BUT IT’S SHOEING ME THAT I HAVE LOGINED IN MULTIPLE DEVICE. Screenshot Add…

---

## [About flaged](https://discuss.codechef.com/t/about-flaged/125006)

<div class="topic-metadata">

**Author:** [@kl2500040143](https://discuss.codechef.com/u/kl2500040143)\
**Replies:** 0\
**Last updated:** [February 13, 2026, 3:18am UTC](https://discuss.codechef.com/t/about-flaged/125006 "2026-02-13T03:18:38Z")

</div>

the code chef is being flagged to my code chef account even i am not cheated solve the problem as soon as possible

---

## [All problem is pro](https://discuss.codechef.com/t/all-problem-is-pro/124335)

<div class="topic-metadata">

**Author:** [@rahul\_6299](https://discuss.codechef.com/u/rahul_6299)\
**Replies:** 0\
**Last updated:** [October 5, 2025, 9:24pm UTC](https://discuss.codechef.com/t/all-problem-is-pro/124335 "2025-10-05T21:24:17Z")

</div>

Describe your issue all problem is pro in the my account in the free not use Screenshot Additional info

---

## [i have been blocked from writing skill test due to going back in window due to my pc shutdown](https://discuss.codechef.com/t/i-have-been-blocked-from-writing-skill-test-due-to-going-back-in-window-due-to-my-pc-shutdown/122793)

<div class="topic-metadata">

**Author:** [@klu\_2400030075](https://discuss.codechef.com/u/klu_2400030075)\
**Replies:** 1\
**Last updated:** [April 16, 2025, 4:55pm UTC](https://discuss.codechef.com/t/i-have-been-blocked-from-writing-skill-test-due-to-going-back-in-window-due-to-my-pc-shutdown/122793 "2025-04-16T16:55:42Z")

</div>

Sorry, you have been blocked from the assessment due to unfair practices. Please contact assessment organiser for further details. You will be able to check your report card after the end of assessment. You will be ab…

---

## [What would be the solution for the problem? (Practice problem of Two Pointers and Sliding Window)](https://discuss.codechef.com/t/what-would-be-the-solution-for-the-problem-practice-problem-of-two-pointers-and-sliding-window/120580)

<div class="topic-metadata">

**Author:** [@krishnendu21](https://discuss.codechef.com/u/krishnendu21)\
**Replies:** 0\
**Last updated:** [October 12, 2024, 6:46am UTC](https://discuss.codechef.com/t/what-would-be-the-solution-for-the-problem-practice-problem-of-two-pointers-and-sliding-window/120580 "2024-10-12T06:46:46Z")

</div>

Flipping subarray:- You are given a binary array arr whose elements are only 0 and 1 .Your task is to find the length of the longest subarray that contains only 1s after flipping exactly one contiguous subarray from …

---

## [Help me in solving CLB033 problem](https://discuss.codechef.com/t/help-me-in-solving-clb033-problem/120360)

<div class="topic-metadata">

**Author:** [@cietvamsiard](https://discuss.codechef.com/u/cietvamsiard)\
**Replies:** 2\
**Last updated:** [October 1, 2024, 10:23am UTC](https://discuss.codechef.com/t/help-me-in-solving-clb033-problem/120360 "2024-10-01T10:23:19Z")

</div>

My issue explanation wanted My code #include \<stdio.h\> int main() { int s = 14; int cost=$7 printf("%d\\n", area); printf("%d$", cost); return 0; } Learning course: Programming and Problem sol…

---

## [Struggling with Independent DSA Problem Solving: Seeking Advice and Strategies](https://discuss.codechef.com/t/struggling-with-independent-dsa-problem-solving-seeking-advice-and-strategies/119060)

<div class="topic-metadata">

**Author:** [@techiebhavin](https://discuss.codechef.com/u/techiebhavin)\
**Replies:** 0\
**Last updated:** [July 26, 2024, 5:24pm UTC](https://discuss.codechef.com/t/struggling-with-independent-dsa-problem-solving-seeking-advice-and-strategies/119060 "2024-07-26T17:24:12Z")

</div>

Hi everyone, I have been diligently learning Data Structures and Algorithms (DSA) every day, but I am facing a challenge that I hope to get some advice on. When I try to solve problems on my own, I often find myself stu…

---

## [NewbiesAssemble](https://discuss.codechef.com/t/newbiesassemble/118798)

<div class="topic-metadata">

**Author:** [@tanmai1](https://discuss.codechef.com/u/tanmai1)\
**Replies:** 0\
**Last updated:** [July 11, 2024, 1:14pm UTC](https://discuss.codechef.com/t/newbiesassemble/118798 "2024-07-11T13:14:39Z")

</div>

Just a new topic to get started after reaching TL 1

---

## [Module 8 , tiggers](https://discuss.codechef.com/t/module-8-tiggers/117030)

<div class="topic-metadata">

**Author:** [@theva](https://discuss.codechef.com/u/theva)\
**Replies:** 0\
**Last updated:** [March 28, 2024, 3:09pm UTC](https://discuss.codechef.com/t/module-8-tiggers/117030 "2024-03-28T15:09:16Z")

</div>

module 8 , tiggers code is not running that shows error

---

## [All Data Structures and Algorithms Concepts and Solutions Stored in a Structured Manner 🎯](https://discuss.codechef.com/t/all-data-structures-and-algorithms-concepts-and-solutions-stored-in-a-structured-manner/103680)

<div class="topic-metadata">

**Author:** [@samirpaul1](https://discuss.codechef.com/u/samirpaul1)\
**Replies:** 0\
**Last updated:** [October 19, 2022, 8:32pm UTC](https://discuss.codechef.com/t/all-data-structures-and-algorithms-concepts-and-solutions-stored-in-a-structured-manner/103680 "2022-10-19T20:32:45Z")

</div>

Data Structures & Algorithms for Coding Interview Repository Link: https://github.com/SamirPaulb/DSAlgo In this repository, I have stored solutions to various problems and concepts of Data Structures and Algorithms i…

---

## [Help me in solving ZEROSTRING problem](https://discuss.codechef.com/t/help-me-in-solving-zerostring-problem/113634)

<div class="topic-metadata">

**Author:** [@b\_rohan04](https://discuss.codechef.com/u/b_rohan04)\
**Replies:** 2\
**Last updated:** [October 31, 2023, 4:06am UTC](https://discuss.codechef.com/t/help-me-in-solving-zerostring-problem/113634 "2023-10-31T04:06:21Z")

</div>

My issue i cant think of any test case that fails this please help me to rectify my mistake and also suggest how can i approach such problems effectively i am just a beginner and just started c programming and python few…

---

## [Solve VECTOR2 problem using for loop](https://discuss.codechef.com/t/solve-vector2-problem-using-for-loop/113541)

<div class="topic-metadata">

**Author:** [@jayambe7](https://discuss.codechef.com/u/jayambe7)\
**Replies:** 0\
**Last updated:** [October 26, 2023, 5:00pm UTC](https://discuss.codechef.com/t/solve-vector2-problem-using-for-loop/113541 "2023-10-26T17:00:58Z")

</div>

My solution I use for loop instead of do while loop to solve this problem, here I share my code with you, guys “”" include \<bits/stdc++.h\> using namespace std; int main() { vector v; char x; for (;;) { cin \>\> …

---

## [Iam unable to resume learning](https://discuss.codechef.com/t/iam-unable-to-resume-learning/112654)

<div class="topic-metadata">

**Author:** [@ajithkumar70](https://discuss.codechef.com/u/ajithkumar70)\
**Replies:** 0\
**Last updated:** [September 24, 2023, 9:56am UTC](https://discuss.codechef.com/t/iam-unable-to-resume-learning/112654 "2023-09-24T09:56:11Z")

</div>

Iam unable to continue Learning

---

## [Can someone explain what is actually done  in this Problem](https://discuss.codechef.com/t/can-someone-explain-what-is-actually-done-in-this-problem/112464)

<div class="topic-metadata">

**Author:** [@giria6102](https://discuss.codechef.com/u/giria6102)\
**Replies:** 0\
**Last updated:** [September 19, 2023, 4:13am UTC](https://discuss.codechef.com/t/can-someone-explain-what-is-actually-done-in-this-problem/112464 "2023-09-19T04:13:10Z")

</div>

You have a matrix of size N \* N with rows numbered through 1 to N from top to bottom and columns through 1 to N from left to right. It contains all values from 1 to N2, i.e. each value from 1 to N2 occurs exactly once in…

---

## [Help me in solving DICEGAME2 problem](https://discuss.codechef.com/t/help-me-in-solving-dicegame2-problem/112442)

<div class="topic-metadata">

**Author:** [@dhanush\_55](https://discuss.codechef.com/u/dhanush_55)\
**Replies:** 1\
**Last updated:** [September 18, 2023, 8:48am UTC](https://discuss.codechef.com/t/help-me-in-solving-dicegame2-problem/112442 "2023-09-18T08:48:55Z")

</div>

My issue Logic My code #include \<iostream\> using namespace std; int main() { int t; cin\>\>t; while(t--) { int a1,a2,a3,b1,b2,b3,a,b; cin\>\>a1\>\>a2\>\>a3\>\>b1\>\>b2\>\>b3; a=a1+a3-a2; …

---

## [Help me in solving LB01B problem](https://discuss.codechef.com/t/help-me-in-solving-lb01b-problem/111469)

<div class="topic-metadata">

**Author:** [@alii11](https://discuss.codechef.com/u/alii11)\
**Replies:** 1\
**Last updated:** [September 9, 2023, 8:50am UTC](https://discuss.codechef.com/t/help-me-in-solving-lb01b-problem/111469 "2023-09-09T08:50:31Z")

</div>

My issue The concept was unclear to me Learning course: C++ for problem solving - 1 Problem Link: Problem (Make Avg) - Generate examples in C++ Problem Solving

---

## [Interview question of SpringWorks](https://discuss.codechef.com/t/interview-question-of-springworks/93074)

<div class="topic-metadata">

**Author:** [@yatintripathi](https://discuss.codechef.com/u/yatintripathi)\
**Replies:** 6\
**Last updated:** [February 16, 2023, 4:50pm UTC](https://discuss.codechef.com/t/interview-question-of-springworks/93074 "2023-02-16T16:50:26Z")

</div>

DESCRIPTION Tesla is having an army of Highly Advanced Al based Robots. The robots are designed in such a way that Tesla can fuse 2 robots in order to make a single robot of an upgraded level. In doing so, the power a…

---

## [Start of my DSA journey](https://discuss.codechef.com/t/start-of-my-dsa-journey/105222)

<div class="topic-metadata">

**Author:** [@pradnya833](https://discuss.codechef.com/u/pradnya833)\
**Replies:** 4\
**Last updated:** [March 5, 2023, 12:02pm UTC](https://discuss.codechef.com/t/start-of-my-dsa-journey/105222 "2023-03-05T12:02:44Z")

</div>

Hii Guys, so from todayy I am going to start my DSA journey… wish me a luck!!!

---

## [Can a beginner learn Python?](https://discuss.codechef.com/t/can-a-beginner-learn-python/105378)

<div class="topic-metadata">

**Author:** [@ethanklein](https://discuss.codechef.com/u/ethanklein)\
**Replies:** 1\
**Last updated:** [March 5, 2023, 4:09am UTC](https://discuss.codechef.com/t/can-a-beginner-learn-python/105378 "2023-03-05T04:09:39Z")

</div>

\[Python is a programming language that prioritizes readability, making it simpler to understand and use for beginners, so it can be said to be beginner-friendly. Since its syntax resembles that of the English language, i…

---

## [Split keyword](https://discuss.codechef.com/t/split-keyword/104965)

<div class="topic-metadata">

**Author:** [@upendra777](https://discuss.codechef.com/u/upendra777)\
**Replies:** 1\
**Last updated:** [January 27, 2023, 7:38pm UTC](https://discuss.codechef.com/t/split-keyword/104965 "2023-01-27T19:38:52Z")

</div>

why we are using this keyword.

---

## [Why this code not working for this test case?](https://discuss.codechef.com/t/why-this-code-not-working-for-this-test-case/104853)

<div class="topic-metadata">

**Author:** [@vigne1029](https://discuss.codechef.com/u/vigne1029)\
**Replies:** 0\
**Last updated:** [January 12, 2023, 5:51am UTC](https://discuss.codechef.com/t/why-this-code-not-working-for-this-test-case/104853 "2023-01-12T05:51:28Z")

</div>

problem: CodeChef: Practical coding for everyone #include \<bits/stdc++.h\> using namespace std; int main() { // your code goes here int t; cin\>\>t; while(t--) { long int x,m,rev=0,last=0,mod=0,p=0; cin\>\>x\>…

---

## [CSES problem set : Distinct Numbers](https://discuss.codechef.com/t/cses-problem-set-distinct-numbers/90953)

<div class="topic-metadata">

**Author:** [@kaizen01](https://discuss.codechef.com/u/kaizen01)\
**Replies:** 4\
**Last updated:** [December 18, 2022, 6:26am UTC](https://discuss.codechef.com/t/cses-problem-set-distinct-numbers/90953 "2022-12-18T06:26:51Z")

</div>

Here’s the question link : https://cses.fi/problemset/task/1621 Here’s my solution using unordered maps ( I know that sets can be used here but I want to know what’s wrong with my solution, it’s giving TLE in few testc…

---

## [Unable to debug the segmentation fault in code here, please help](https://discuss.codechef.com/t/unable-to-debug-the-segmentation-fault-in-code-here-please-help/104385)

<div class="topic-metadata">

**Author:** [@madhav76](https://discuss.codechef.com/u/madhav76)\
**Replies:** 2\
**Last updated:** [December 8, 2022, 6:09pm UTC](https://discuss.codechef.com/t/unable-to-debug-the-segmentation-fault-in-code-here-please-help/104385 "2022-12-08T18:09:53Z")

</div>

problem link : - LeetCode I have not included the condition to not go for positions having zero but shold only change the answer at max and not cause segmentation fault. using namespace std; #include \<iostream\> #includ…

---

## [Why long datatype?](https://discuss.codechef.com/t/why-long-datatype/104373)

<div class="topic-metadata">

**Author:** [@gee6](https://discuss.codechef.com/u/gee6)\
**Replies:** 4\
**Last updated:** [December 4, 2022, 6:16pm UTC](https://discuss.codechef.com/t/why-long-datatype/104373 "2022-12-04T18:16:47Z")

</div>

Why does the below code not pass test cases when integer datatype is used? public class Main { public static void main(String\[\] args) throws IOException { try{ //Your Solve Scanner in=new Scanner(System.in);…

---

## [Code delivering the wrong result at higher inputs](https://discuss.codechef.com/t/code-delivering-the-wrong-result-at-higher-inputs/104177)

<div class="topic-metadata">

**Author:** [@williamjord24](https://discuss.codechef.com/u/williamjord24)\
**Replies:** 0\
**Last updated:** [November 21, 2022, 7:13am UTC](https://discuss.codechef.com/t/code-delivering-the-wrong-result-at-higher-inputs/104177 "2022-11-21T07:13:35Z")

</div>

I am an aspiring coder. I have been trying to solve this question on codechef. What do you reckon is the problem here? A link to the question: CodeChef: Practical coding for everyone industlab My code fail when the inpu…

---

## [Subset Generation](https://discuss.codechef.com/t/subset-generation/103971)

<div class="topic-metadata">

**Author:** [@sarasrahul101](https://discuss.codechef.com/u/sarasrahul101)\
**Replies:** 0\
**Last updated:** [November 11, 2022, 3:07am UTC](https://discuss.codechef.com/t/subset-generation/103971 "2022-11-11T03:07:03Z")

</div>

---

## [Any plans for mentored learning camps coming up?](https://discuss.codechef.com/t/any-plans-for-mentored-learning-camps-coming-up/103858)

<div class="topic-metadata">

**Author:** [@bloomerchef](https://discuss.codechef.com/u/bloomerchef)\
**Replies:** 1\
**Last updated:** [November 7, 2022, 2:21pm UTC](https://discuss.codechef.com/t/any-plans-for-mentored-learning-camps-coming-up/103858 "2022-11-07T14:21:37Z")

</div>

Any plans for mentored learning camps coming up?

---

## [ADASCOOL (Easy) Question Doubt](https://discuss.codechef.com/t/adascool-easy-question-doubt/103834)

<div class="topic-metadata">

**Author:** [@abhinavg916](https://discuss.codechef.com/u/abhinavg916)\
**Replies:** 0\
**Last updated:** [November 3, 2022, 7:48pm UTC](https://discuss.codechef.com/t/adascool-easy-question-doubt/103834 "2022-11-03T19:48:33Z")

</div>

Question Link - Ada School - Submit | CodeChef Unable to develop logic for this situation given in the questions. Can somebody help me out on this?

[Next page](https://discuss.codechef.com/c/codechef-dsa-learners/68.md?page=1)
