JenilGajjar20 / JenilGajjar20/Competitive-Programming_problems

Add New Problem: Maximum Sum Path in Two Sorted Arrays with Solution

Aperta
#187 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
18
Fork
75
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.