mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): typos in DC 111 & 117 (#64053)
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
+1
-1
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user