🪟 Windows TippsModify Windows Support Phone Number with PowerShell(03.09.2026 um 00:00 Uhr)
🔧 AI Nachrichten Podcast: ChatGPT schwatzt Nutzern in Deutschland jetzt Werbung auf(28.08.2026 um 08:46 Uhr)
🪟 Windows TippsMicrosoft bringt Emoji 17.0 auf Windows 11(31.08.2026 um 08:16 Uhr)
🪟 Windows TippsModify Windows Support Phone Number with PowerShell(03.09.2026 um 00:00 Uhr)
🔧 AI Nachrichten Podcast: ChatGPT schwatzt Nutzern in Deutschland jetzt Werbung auf(28.08.2026 um 08:46 Uhr)
🪟 Windows TippsMicrosoft bringt Emoji 17.0 auf Windows 11(31.08.2026 um 08:16 Uhr)

🔧 Programmierung 🕛 vor 1 Jahr 2 Min Lesezeit
0

My journey in competitive programming

↗ Quelle (dev.to)
🗣️ Stimme:

Today's Learning: Subsequence with Sum K, Combination Sum, and Combination Sum 2



Hey guys,



Today, I was solving some interesting problems related to subsequences and combination sums. Here is what I focused on:



1. Check if There Exists a Subsequence with Sum K:



I start with a problem where I am asked to check whether there exists any subsequence in an array which sums up to a given number K. The basic idea here was to explore all possible subsequences and check if their sum was equal to K. This I achieved with a recursive approach where I would consider every element in the array of whether I should include it in the current subsequence or skip it. In this way, I would look at all possible ways to find out if such a subsequence existed. It is an excellent practice on every decision step solving the problems using recursion.



2. Combination Sum:



This next problem is Combination Sum in which I was given to find all unique combinations of k numbers from a list, sums up to a given number. This problem requires the exploration of all possible combinations of the numbers and backtracking at every point when the sum got higher than the target number. I figured out how to include a recursive way that prevents duplicate combinations and ensures every combination is produced using elements of the list in non-decreasing order.



Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Modify Windows Support Phone Number with PowerShell
1 Quelle
Die Zukunft des Einkaufens: Warum wir ein neues Kapitel aufschlagen (und wie du es mitschreiben kannst)
1 Quelle
ZDE Podcast 251: Wie sieht digitales Instore Marketing 2026 aus, Amit Chatterjee?
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten My journey in competitive programming

Thematisch verwandte Begriffe: journey, competitive, programming · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...