Skip to content

Commit 8ff4074

Browse files
refactor 276
1 parent 92c77c3 commit 8ff4074

File tree

1 file changed

+0
-12
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-12
lines changed

src/main/java/com/fishercoder/solutions/_276.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 276. Paint Fence
5-
6-
There is a fence with n posts, each post can be painted with one of the k colors.
7-
8-
You have to paint all the posts such that no more than two adjacent fence posts have the same color.
9-
10-
Return the total number of ways you can paint the fence.
11-
12-
Note:
13-
n and k are non-negative integers.*/
14-
153
public class _276 {
164
public static class Solution1 {
175
public int numWays(int n, int k) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy