We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92c77c3 commit 8ff4074Copy full SHA for 8ff4074
src/main/java/com/fishercoder/solutions/_276.java
@@ -1,17 +1,5 @@
1
package com.fishercoder.solutions;
2
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
15
public class _276 {
16
public static class Solution1 {
17
public int numWays(int n, int k) {
0 commit comments