You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You get part of the information and need to fills in the blanks. If the provided information is insufficient to calculate the rest, there should be an error "Insufficient information". If the data given is contradictory, there should be an error "Contradictory information" The full information about the jigsaw puzzle contains the following parts:
1
+
You get part of the information and need to fills in the blanks.
2
+
In case the data is insufficient or contradictory the user needs to be notified of the issue.
3
+
The full information about the jigsaw puzzle contains the following parts:
2
4
3
5
-`pieces`: Number of pieces
4
6
-`border`: Number of border pieces
@@ -8,8 +10,10 @@ You get part of the information and need to fills in the blanks. If the provided
8
10
-`aspectRatio`: Aspect ratio of columns / rows
9
11
-`format`: Format of the puzzle: `"portrait" / "square" / "landscape" / "globe"`
10
12
11
-
For the rows and columns of a puzzle globe, assume an aspect ratio of 1.0, so rows and columns are identical.
13
+
For the rows and columns of a puzzle globe, assume an aspect ratio of 1.0, so that rows and columns are identical.
12
14
13
-
Spoilt by the comfort of your helper, your friend now no longer wants to count border pieces. To help with estimating, you take the number of pieces and return an array of the possible numbers of rows and columns.
15
+
Spoilt by the comfort of your helper, your friend now no longer wants to count border pieces.
16
+
To help with estimating, you take the number of pieces and return an array of the possible numbers of rows and columns.
14
17
15
-
Start with the lowest number of rows and work your way up from there. While a single-row jigsaw puzzle might be a strange novelty, it is theoretically possible, so you should include this case.
18
+
Start with the lowest number of rows and work your way up from there.
19
+
While a single-row jigsaw puzzle might be a strange novelty, it is theoretically possible, so you should include this case.
0 commit comments