diff --git a/PARTICIPANTS.md b/PARTICIPANTS.md index 5a2e2f4..31b813e 100644 --- a/PARTICIPANTS.md +++ b/PARTICIPANTS.md @@ -142,3 +142,13 @@ - šŸ”­ Connect with me: **[Piyushjar](https://github.com/piyushjar))** --- +### Connect with me: + + + +- šŸ‘Øā€šŸ’» My name is **Ranjit** +- 🌱 I’m a Competitive Programmer. +- šŸ“« Reach me: **rishicoc898741@gmail.com** +- šŸ”­ Connect with me: **[Ranjit](https://github.com/ranjit7858))** + +--- diff --git a/cpp/2446_Determine if Two Events Have Conflict.cpp b/cpp/2446_Determine if Two Events Have Conflict.cpp new file mode 100644 index 0000000..2f4cb0a --- /dev/null +++ b/cpp/2446_Determine if Two Events Have Conflict.cpp @@ -0,0 +1,10 @@ +class Solution { +public: + bool haveConflict(vector& event1, vector& event2) { + if(event1[1] >= event2[0] && event1[1] <= event2[1]) + return true; + else if(event2[1] >= event1[0] && event2[1] <= event1[1]) + return true; + return false; + } +};