From df576bae029d0e22f5e0f6e4a4954db4485b90ef Mon Sep 17 00:00:00 2001 From: Nathan Wang Date: Mon, 20 Jul 2020 14:02:17 -0700 Subject: bugfix --- content/5_Plat/DP_More.mdx | 2 +- src/components/ModuleLayout/ModuleLayout.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}
- Author{module.author.indexOf(',') != -1 ? 's' : ''}:{' '} + Author{module.author.indexOf(',') !== -1 ? 's' : ''}:{' '} {module.author}
-- cgit v1.2.3-70-g09d2 From fce814c8f7cef5250e9763f287d589ac9e70e5a7 Mon Sep 17 00:00:00 2001 From: Darren Yao Date: Mon, 20 Jul 2020 14:07:42 -0700 Subject: Update Rect_Geo.mdx --- content/2_Bronze/Rect_Geo.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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. -- cgit v1.2.3-70-g09d2