diff options
author | Benjamin Qi | 2020-07-20 17:11:52 -0400 |
---|---|---|
committer | Benjamin Qi | 2020-07-20 17:11:52 -0400 |
commit | c102dec4116f74a086d3bf825458c020a28f8dc1 (patch) | |
tree | 00edd56ff6c3aa2086c28ad2345e2b513b70c286 | |
parent | d7f388555b67321522a4122db1a7f37c2c6cf819 (diff) | |
parent | fce814c8f7cef5250e9763f287d589ac9e70e5a7 (diff) |
Merge branch 'master' of https://github.com/thecodingwizard/usaco-guide
-rw-r--r-- | content/2_Bronze/Rect_Geo.mdx | 12 | ||||
-rw-r--r-- | content/5_Plat/DP_More.mdx | 2 | ||||
-rw-r--r-- | src/components/ModuleLayout/ModuleLayout.tsx | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/content/2_Bronze/Rect_Geo.mdx b/content/2_Bronze/Rect_Geo.mdx index ca83c39..657804e 100644 --- a/content/2_Bronze/Rect_Geo.mdx +++ b/content/2_Bronze/Rect_Geo.mdx @@ -89,13 +89,13 @@ To create a new rectangle, use the following constructor: Rectangle newRect = new Rectangle(x, y, width, height); ``` -The `Rectangle` class supports numerous useful methods. +The `Rectangle` class supports numerous useful methods, including the following: - - `firstRect.intersects(secondRect)` checks if two rectangles intersect. - - `firstRect.union(secondRect)` returns a rectangle representing the union of two rectangles. - - `firstRect.contains(x, y)` checks whether the integer point $(x,y)$ exists in firstRect. - - `firstRect.intersection(secondRect)` returns a rectangle representing the intersection of two rectangles. - - what happens when intersection is empty? +- `firstRect.intersects(secondRect)` checks if two rectangles intersect. +- `firstRect.union(secondRect)` returns a rectangle representing the union of two rectangles. +- `firstRect.contains(x, y)` checks whether the integer point $(x,y)$ exists in firstRect. +- `firstRect.intersection(secondRect)` returns a rectangle representing the intersection of two rectangles. +- what happens when intersection is empty? This class can often lessen the implementation needed in a lot of bronze problems and CodeForces problems. diff --git a/content/5_Plat/DP_More.mdx b/content/5_Plat/DP_More.mdx index d5d4da7..21dafbf 100644 --- a/content/5_Plat/DP_More.mdx +++ b/content/5_Plat/DP_More.mdx @@ -1,7 +1,7 @@ --- id: dp-more title: "More DP (come up with better name?)" -author: ? +author: "?" description: "?" frequency: 1 --- diff --git a/src/components/ModuleLayout/ModuleLayout.tsx b/src/components/ModuleLayout/ModuleLayout.tsx index c3f7447..28ffb6b 100644 --- a/src/components/ModuleLayout/ModuleLayout.tsx +++ b/src/components/ModuleLayout/ModuleLayout.tsx @@ -469,7 +469,7 @@ export default function ModuleLayout({ {module.title} </h1> <p className={`text-gray-500`}> - Author{module.author.indexOf(',') != -1 ? 's' : ''}:{' '} + Author{module.author.indexOf(',') !== -1 ? 's' : ''}:{' '} {module.author} </p> </div> |