fix(curriculum): typos in DC 111 & 117 (#64053)

This commit is contained in:
Tom
2025-11-25 08:00:16 -06:00
committed by GitHub
parent f893969a3b
commit 685ab392cf
3 changed files with 3 additions and 3 deletions
@@ -13,7 +13,7 @@ Given a matrix (array of arrays) that includes the location of the ball (`2`), a
- The ball always moves in a straight line.
- The movement direction is determined by how the ball moved from `1` to `2`.
- The edges of the matrix are considered walls. If the balls hits a:
- The edges of the matrix are considered walls. If the ball hits a:
- top or bottom wall, it bounces by reversing its vertical direction.
- left or right wall, it bounces by reversing its horizontal direction.
- corner, it bounces by reversing both directions.
@@ -13,7 +13,7 @@ Given a matrix (array of arrays) that includes the location of the ball (`2`), a
- The ball always moves in a straight line.
- The movement direction is determined by how the ball moved from `1` to `2`.
- The edges of the matrix are considered walls. If the balls hits a:
- The edges of the matrix are considered walls. If the ball hits a:
- top or bottom wall, it bounces by reversing its vertical direction.
- left or right wall, it bounces by reversing its horizontal direction.
- corner, it bounces by reversing both directions.
@@ -57,7 +57,7 @@ TestCase().assertEqual(difference([1, 3, 5, 7, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9]),
```py
def difference(arr1, arr2):
return diff
return arr1
```
# --solutions--