From 7558d2c6052ac1b0429ccf0084f054fc1ce05fac Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Thu, 14 Sep 2023 17:06:48 -0400 Subject: [PATCH] adding questions --- lectures/05_classes_II/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lectures/05_classes_II/README.md b/lectures/05_classes_II/README.md index e305838..a1c748c 100644 --- a/lectures/05_classes_II/README.md +++ b/lectures/05_classes_II/README.md @@ -37,7 +37,11 @@ will sort Date objects into chronological order. - Really, the only weird thing about operators is their syntax. - We will have many opportunities to write operators throughout this course. Sometimes these will be made class member functions, but more on this in a later lecture. -## 5.3 Non-member Operators +## 5.3 Questions + +- Can you solve leetcode problem 905 with a overloaded operator <? +- Can you solve leetcode problem 905 with a overloaded operator <, and make this overloaded operator < a member function? +- Can you solve leetcode problem 905 with a overloaded operator <, and make this overloaded operator < a member function, plus make the definition of this member function outside of the class definition? ## 5.4 Exercises