Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1793] Adding Solution ofmaximum-score-of-a-good-subarray.java #166

Merged
merged 5 commits into from
Oct 24, 2023

Conversation

12345rams
Copy link
Contributor

Issue Description

#164

Summary

This pull request addresses the issue titled "Maximum Score of a Good Subarray " Given an array of integers nums (0-indexed) and an integer k.

The score of a subarray (i, j) is defined as min(nums[i], nums[i+1], ..., nums[j]) * (j - i + 1). A good subarray is a subarray where i <= k <= j.

Return the maximum possible score of a good subarray.

Proposed Changes

  • Added a Java solution to find Maximum Score of a Good Subarray

@godkingjay godkingjay self-requested a review October 23, 2023 00:18
@godkingjay godkingjay added hacktoberfest-accepted Hacktoberfest participation. hacktoberfest Hacktoberfest issue. solution labels Oct 23, 2023
Copy link
Owner

@godkingjay godkingjay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow our directory structure:

LeetCode/
├── [DIFFICULTY]/
│   ├── [PROBLEM]/
│   │   ├── README
│   │   ├── solution.java
│   │   ├── solution.cpp

Thank you.

@godkingjay godkingjay changed the title Adding Solution ofmaximum-score-of-a-good-subarray.java [1793] Adding Solution ofmaximum-score-of-a-good-subarray.java Oct 23, 2023
In Format  
LeetCode/
├── [DIFFICULTY]/
│   ├── [PROBLEM]/
│   │   ├── README
│   │   ├── solution.java
│   │   ├── solution.cpp
@12345rams
Copy link
Contributor Author

I corrected all these mistake

@godkingjay godkingjay merged commit 336a315 into godkingjay:master Oct 24, 2023
@godkingjay godkingjay linked an issue Oct 24, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Hacktoberfest issue. hacktoberfest-accepted Hacktoberfest participation. solution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PROBLEM] 1793. Maximum Score of a Good Subarray
2 participants