JenilGajjar20 / JenilGajjar20/Competitive-Programming_problems
Add New Problem: Maximum Sum Path in Two Sorted Arrays with Solution
- Vorherrschende Sprache
- C++
- Sterne
- 18
- Forks
- 75
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I would like to contribute a new problem statement and its solution to the project. Below are the details:
Problem Statement:
Given two sorted arrays of distinct integers, arr1 and arr2, each array may have some elements in common. The task is to find the maximum sum of a path from the beginning of any array to the end of any array. The twist is that you can switch from one array to another array only at the common elements. When switching, consider the common element only once in the result.
Please accept my PR and label it as `hacktoberfest-accepted` if my contribution is relevant.
Beitragsleitfaden
Rechercherichtung
Start by inspecting existing problem entries and contribution conventions in the repository to find where statements and C++ solutions belong. Add the maximum-sum-path problem and its solution in the established format, then verify it using the repository's existing execution or checking approach.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp
- Bereich
- data
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100