Skip to content

nik-nenkov/tutoring-memoization-with-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Black-and-White Board Challenge

Introduction

This repository contains a solution to a combinatorial puzzle: arranging black and white squares on an N x M board. The goal is to determine the number of possible arrangements where no two neighboring squares are black.

Problem Statement

  • Task: Count the different ways to arrange black and white squares on an N x M board.
  • Constraint: No two adjacent squares can be black.

Inspiration

The solution employs dynamic programming concepts, which may be related to the principles discussed in this Dynamic Programming YouTube Video.

Usage

  • Clone the repository to access the solution.
  • Review the code to understand the dynamic programming approach used.