Google-Developer-Student-Club-CCOEW / Competitive-Programming-2023-GDSC-CUMMINS-X-GDSC-MMCOE

Welcome to the Hacktoberfest 2023 Competitive-Programming Cohort for Cummins College and MMCOE students! To request issue assignment, create a pull request, providing: 1. Full Name 🧑‍🎓 2.Email 📧 3.College ID (RNO) 🔢 4.Branch of Study.📚 5. Year 📆 .The Cummins College and MMCOE students' PRs will be considered only. Thank you!
9 stars 69 forks source link

Array Description #150

Closed suryaprakashpandey closed 11 months ago

suryaprakashpandey commented 1 year ago

Write code in the preferred language and attach output with it.

You know that an array has n integers between 1 and m, and the absolute difference between two adjacent values is at most 1.

Given a description of the array where some values may be unknown, your task is to count the number of arrays that match the description.

Input The first input line has two integers n and m: the array size and the upper bound for each value.

The next line has n integers x1,x2,…,xn: the contents of the array. Value 0 denotes an unknown value.

Output Print one integer: the number of arrays modulo 10^9+7.

Example:

Input: 3 5 2 0 2 Output: 3

Explanation: The arrays [2,1,2], [2,2,2] and [2,3,2] match the description.

51tejalhajari commented 11 months ago

Can u please assign this issue to me ? Name -> Tejal Hajari SY EnTC E-mail -> tejal.hajari@cumminscollege.in

51tejalhajari commented 11 months ago

Didi This issue is assigned to me but I got mail that it has merged so what should I do now??

On Tue, Oct 17, 2023, 7:41 PM Sonia Dessai @.***> wrote:

Assigned #150 https://github.com/Google-Developer-Student-Club-CCOEW/Competitive-Programming-2023-GDSC-CUMMINS-X-GDSC-MMCOE/issues/150 to @51tejalhajari https://github.com/51tejalhajari.

— Reply to this email directly, view it on GitHub https://github.com/Google-Developer-Student-Club-CCOEW/Competitive-Programming-2023-GDSC-CUMMINS-X-GDSC-MMCOE/issues/150#event-10679198637, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7K7V65RH6GR3NJ2O6UH4CLX72GYNAVCNFSM6AAAAAA5QJCRSGVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQGY3TSMJZHA3DGNY . You are receiving this because you were assigned.Message ID: <Google-Developer-Student-Club-CCOEW/Competitive-Programming-2023-GDSC-CUMMINS-X-GDSC-MMCOE/issue/150/issue_event/10679198637 @github.com>