Consider the testcase:
1
1
1 Like
Consider the testcase:
1
2
1 Like
Consider the testcase:
1
10
Looking at your code, it looks like you’ve slightly misread the question - in particular, how many coins there are in each row
1 Like