Skip to content

[Feature Request]: Add lc-solution 256. Paint House #3904

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

Closed
4 tasks done
sivaprasath2004 opened this issue Jul 26, 2024 · 2 comments · Fixed by #3911
Closed
4 tasks done

[Feature Request]: Add lc-solution 256. Paint House #3904

sivaprasath2004 opened this issue Jul 26, 2024 · 2 comments · Fixed by #3911
Assignees
Labels
CodeHarborHub - Thanks for creating an issue! documentation Improvements or additions to documentation dsa-solution Label for solutions related to Data Structures & Algorithms. gssoc GirlScript Summer of Code | Contributor GSSOC'24 GirlScript Summer of Code | Contributor level1 GirlScript Summer of Code | Contributor's Levels

Comments

@sivaprasath2004
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Feature Description

problem

256. Paint House

Description

  • There is a row of n houses, where each house can be painted one of three colors: red, blue, or green. The cost of painting each house with a certain color is different. You have to paint all the houses such that no two adjacent houses have the same color.

  • The cost of painting each house with a certain color is represented by an n x 3 cost matrix costs.

  • For example, costs[0][0] is the cost of painting house 0 with the color red; costs[1][2] is the cost of painting house 1 with color green, and so on...
    Return the minimum cost to paint all houses.

Example:

Example 1:

Input: costs = [[17,2,17],[16,16,5],[14,3,19]]
Output: 10
Explanation: Paint house 0 into blue, paint house 1 into green, paint house 2 into blue.
Minimum cost: 2 + 5 + 3 = 10.

Example 2:

Input: costs = [[7,6,2]]
Output: 2

Constraints:

costs.length == n
costs[i].length == 3
1 <= n <= 100
1 <= costs[i][j] <= 20

Use Case

  • please assign me..

Benefits

No response

Add ScreenShots

No response

Priority

High

Record

  • I have read the Contributing Guidelines
  • I'm a GSSOC'24 contributor
  • I have starred the repository
@sivaprasath2004 sivaprasath2004 added the enhancement New feature or request label Jul 26, 2024
Copy link

Hi @sivaprasath2004! Thanks for opening this issue. We appreciate your contribution to this open-source project. Your input is valuable and we aim to respond or assign your issue as soon as possible. Thanks again!

@sivaprasath2004 sivaprasath2004 changed the title [Feature Request]: [Feature Request]: Add lc-solution 256. Paint House Jul 26, 2024
@ajay-dhangar ajay-dhangar added documentation Improvements or additions to documentation GSSOC'24 GirlScript Summer of Code | Contributor level1 GirlScript Summer of Code | Contributor's Levels gssoc GirlScript Summer of Code | Contributor dsa-solution Label for solutions related to Data Structures & Algorithms. labels Jul 26, 2024
Copy link

Hello @sivaprasath2004! Your issue #3904 has been closed. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CodeHarborHub - Thanks for creating an issue! documentation Improvements or additions to documentation dsa-solution Label for solutions related to Data Structures & Algorithms. gssoc GirlScript Summer of Code | Contributor GSSOC'24 GirlScript Summer of Code | Contributor level1 GirlScript Summer of Code | Contributor's Levels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants