2019 AP Computer Science A FRQ #4A

2019 AP Computer Science A FRQ #4A

Write the constructor for the LightBoard class, which initializes lights so that each light is set to on with a 40% probability. The notation lights[r][c] represents the array element at row r and column c. Timestamps Intro: 00:00 Pseudocode: 00:34 Writing the code: 01:50 Testing in playground: 05:50 Final solution: 06:37