Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Codility Interview Reschedule Reques static class Task ( int du : . app.codility.com / c / run / XQHB 3 K - EQM / Microsoft
Codility
Interview Reschedule Reques
static class Task
int du
:
app.codility.comcrunXQHBKEQM
Microsoft Office H
Scheduledata
ExchangeMail
News
Translate
E Mrorsoth
Task
Files
There is a board of size represented by an array board consisting of strings Rows are numbered from to from top to bottom and columns are numbered from to from left to right Each cell is either empty denoted by or contains a letter A or B The cell in the Rth row and Cth column is represented by board
Calculate the number of rectangles inside the board with a corner at position board which cover an equal number of letters A and
For example, for board ABBY A there are five such rectangles:
the first row without the last element marked in the picture below;
the whole first row;
symmetrically, the whole first column marked below and the first column without the last element;
the whole board.
tableAB
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started