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
Copy file name to clipboardExpand all lines: Techgig Code Gladiators 2021/semifinals/jazzy and cricket balls.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@ Jazzy is good with bowling but is not good with studies. His mom wants him to fo
4
4
5
5
She will give the balls to Jazzy only if he can tell the maximum number of moves required in which he can get to play with all the balls. There are few conditions though:
6
6
7
-
* In one move, Jazzy can divide the number of balls in the packet into an equal number of groups only.
7
+
8
+
* In one move, Jazzy can divide the number of balls in the packet into an equal number of groups only.
8
9
9
10
Example : Suppose there are 6 balls in the packet.
10
11
@@ -16,11 +17,11 @@ She will give the balls to Jazzy only if he can tell the maximum number of moves
16
17
17
18
Note: Dividing a single group into multiple groups of equal number is considered one move only.
18
19
19
-
* Jazzy can get to play with the balls when they are present as a single unit only and not in any group of size greater than 1. Also, getting to play with a ball is considered a move.
20
+
* Jazzy can get to play with the balls when they are present as a single unit only and not in any group of size greater than 1. Also, getting to play with a ball is considered a move.
20
21
21
22
Example: In a group there are 2 balls, then Jazzy cannot play with them until he further divides them into single-single units.
22
23
23
-
* The length of all the packets/groups should always be an integer.
24
+
* The length of all the packets/groups should always be an integer.
0 commit comments