# editorial

**URL:** https://discuss.codechef.com/c/editorial/5.md

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

---

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

<div class="topic-metadata">

**Author:** [@system](https://discuss.codechef.com/u/system)\
**Replies:** 10\
**Last updated:** [October 21, 2024, 4:49am UTC](https://discuss.codechef.com/t/about-the-editorial-category/28507 "2024-10-21T04:49:20Z")

</div>

Find official solutions for any problem on CodeChef.

---

## [TELEPHN - Editorial](https://discuss.codechef.com/t/telephn-editorial/126136)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 2\
**Last updated:** [November 5, 2026, 5:06am UTC](https://discuss.codechef.com/t/telephn-editorial/126136 "2026-11-05T05:06:20Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: iceknight1093 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: Binary sear…

---

## [ALRMALRT - Editorial](https://discuss.codechef.com/t/alrmalrt-editorial/126131)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [November 4, 2026, 4:30pm UTC](https://discuss.codechef.com/t/alrmalrt-editorial/126131 "2026-11-04T16:30:21Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: iceknight1093 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: Simple PREREQUISITES: None PR…

---

## [COPYCAT - Editorial](https://discuss.codechef.com/t/copycat-editorial/126132)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [November 4, 2026, 4:30pm UTC](https://discuss.codechef.com/t/copycat-editorial/126132 "2026-11-04T16:30:20Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: iceknight1093 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: Simple PREREQUISITES: None PR…

---

## [EVENODDS - Editorial](https://discuss.codechef.com/t/evenodds-editorial/126133)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [November 4, 2026, 4:30pm UTC](https://discuss.codechef.com/t/evenodds-editorial/126133 "2026-11-04T16:30:20Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: iceknight1093 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: Cakewalk PREREQUISITES: None P…

---

## [FIVECOIN - Editorial](https://discuss.codechef.com/t/fivecoin-editorial/126134)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [November 4, 2026, 4:30pm UTC](https://discuss.codechef.com/t/fivecoin-editorial/126134 "2026-11-04T16:30:19Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: iceknight1093 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: Cakewalk PREREQUISITES: None P…

---

## [CNSTREE2 - Editorial](https://discuss.codechef.com/t/cnstree2-editorial/126139)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [November 4, 2026, 4:30pm UTC](https://discuss.codechef.com/t/cnstree2-editorial/126139 "2026-11-04T16:30:17Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: iceknight1093 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: Easy - Medium PREREQUISITES: T…

---

## [MINRECT - Editorial](https://discuss.codechef.com/t/minrect-editorial/126135)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [November 4, 2026, 4:30pm UTC](https://discuss.codechef.com/t/minrect-editorial/126135 "2026-11-04T16:30:17Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: iceknight1093 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: Cakewalk PREREQUISITES: None P…

---

## [OFFBYONE - Editorial](https://discuss.codechef.com/t/offbyone-editorial/126137)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [November 4, 2026, 4:30pm UTC](https://discuss.codechef.com/t/offbyone-editorial/126137 "2026-11-04T16:30:17Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: iceknight1093 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: Easy PREREQUISITES: Dynamic pr…

---

## [CNSTREE - Editorial](https://discuss.codechef.com/t/cnstree-editorial/126138)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [November 4, 2026, 4:30pm UTC](https://discuss.codechef.com/t/cnstree-editorial/126138 "2026-11-04T16:30:17Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: iceknight1093 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: Easy - Medium PREREQUISITES: T…

---

## [EQLZR - Editorial](https://discuss.codechef.com/t/eqlzr-editorial/126095)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/eqlzr-editorial/126095 "2026-10-28T17:30:20Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: nikhil\_010309 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: None PROBL…

---

## [ALARMM - Editorial](https://discuss.codechef.com/t/alarmm-editorial/126093)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/alarmm-editorial/126093 "2026-10-28T17:30:19Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: nikhil\_010309 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: None PROBL…

---

## [COLLAPSEE - Editorial](https://discuss.codechef.com/t/collapsee-editorial/126094)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/collapsee-editorial/126094 "2026-10-28T17:30:19Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: nikhil\_010309 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: None PROBL…

---

## [RHYDOOR - Editorial](https://discuss.codechef.com/t/rhydoor-editorial/126096)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/rhydoor-editorial/126096 "2026-10-28T17:30:19Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: nikhil\_010309 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: None PROBL…

---

## [XORQUADS - Editorial](https://discuss.codechef.com/t/xorquads-editorial/126097)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/xorquads-editorial/126097 "2026-10-28T17:30:18Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: hyder1102 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: None PROBLEM: Y…

---

## [ODDPWD - Editorial](https://discuss.codechef.com/t/oddpwd-editorial/126100)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/oddpwd-editorial/126100 "2026-10-28T17:30:18Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: nikhil\_010309 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: None PROBL…

---

## [MONOORBEZ - Editorial](https://discuss.codechef.com/t/monoorbez-editorial/126103)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/monoorbez-editorial/126103 "2026-10-28T17:30:16Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: nikhil\_010309 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: DP, combina…

---

## [MONOORB - Editorial](https://discuss.codechef.com/t/monoorb-editorial/126105)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/monoorb-editorial/126105 "2026-10-28T17:30:16Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: nikhil\_010309 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: DP, combina…

---

## [PHSHFT - Editorial](https://discuss.codechef.com/t/phshft-editorial/126104)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/phshft-editorial/126104 "2026-10-28T17:30:16Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: nikhil\_010309 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: Prefix sums …

---

## [XORSCHED - Editorial](https://discuss.codechef.com/t/xorsched-editorial/126102)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/xorsched-editorial/126102 "2026-10-28T17:30:16Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: hyder1102 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: Familiarity wit…

---

## [BRKFLP - Editorial](https://discuss.codechef.com/t/brkflp-editorial/126101)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/brkflp-editorial/126101 "2026-10-28T17:30:16Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: hyder1102 Tester: raysh07 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: DSU, trees PRO…

---

## [EXKEYPAD - Editorial](https://discuss.codechef.com/t/exkeypad-editorial/126049)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 3\
**Last updated:** [October 22, 2026, 1:59pm UTC](https://discuss.codechef.com/t/exkeypad-editorial/126049 "2026-10-22T13:59:56Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: am\_aadvik Tester: iceknight1093 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: (Optional…

---

## [EXPHOTO - Editorial](https://discuss.codechef.com/t/exphoto-editorial/126050)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 21, 2026, 4:30pm UTC](https://discuss.codechef.com/t/exphoto-editorial/126050 "2026-10-21T16:30:56Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: am\_aadvik Tester: iceknight1093 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: Fenwick t…

---

## [EXPRIZE - Editorial](https://discuss.codechef.com/t/exprize-editorial/126051)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 21, 2026, 4:30pm UTC](https://discuss.codechef.com/t/exprize-editorial/126051 "2026-10-21T16:30:56Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: am\_aadvik Tester: iceknight1093 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: Binary se…

---

## [EXQUIZ - Editorial](https://discuss.codechef.com/t/exquiz-editorial/126052)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 21, 2026, 4:30pm UTC](https://discuss.codechef.com/t/exquiz-editorial/126052 "2026-10-21T16:30:55Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: am\_aadvik Tester: iceknight1093 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: None PRO…

---

## [EXBANNER - Editorial](https://discuss.codechef.com/t/exbanner-editorial/126057)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 21, 2026, 4:30pm UTC](https://discuss.codechef.com/t/exbanner-editorial/126057 "2026-10-21T16:30:53Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: am\_aadvik Tester: iceknight1093 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: Sorting, …

---

## [EXBANNER2 - Editorial](https://discuss.codechef.com/t/exbanner2-editorial/126061)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 21, 2026, 4:30pm UTC](https://discuss.codechef.com/t/exbanner2-editorial/126061 "2026-10-21T16:30:53Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: am\_aadvik Tester: iceknight1093 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: None PRO…

---

## [EXBANNERH - Editorial](https://discuss.codechef.com/t/exbannerh-editorial/126062)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 21, 2026, 4:30pm UTC](https://discuss.codechef.com/t/exbannerh-editorial/126062 "2026-10-21T16:30:53Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: am\_aadvik Tester: iceknight1093 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: Inclusion…

---

## [BETWEEN - Editorial](https://discuss.codechef.com/t/between-editorial/126059)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 21, 2026, 4:30pm UTC](https://discuss.codechef.com/t/between-editorial/126059 "2026-10-21T16:30:53Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: am\_aadvik Tester: iceknight1093 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: None PRO…

---

## [EXSHAKE - Editorial](https://discuss.codechef.com/t/exshake-editorial/126053)

<div class="topic-metadata">

**Author:** [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Replies:** 0\
**Last updated:** [October 21, 2026, 4:30pm UTC](https://discuss.codechef.com/t/exshake-editorial/126053 "2026-10-21T16:30:53Z")

</div>

PROBLEM LINK: Practice Contest: Division 1 Contest: Division 2 Contest: Division 3 Contest: Division 4 Author: am\_aadvik Tester: iceknight1093 Editorialist: iceknight1093 DIFFICULTY: TBD PREREQUISITES: Sorting P…

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