From e541547f2254483ce140696ecf2ab0c9870e194f Mon Sep 17 00:00:00 2001 From: Noob Coder <69426049+ranjit7858@users.noreply.github.com> Date: Tue, 25 Oct 2022 19:27:48 +0530 Subject: [PATCH 1/2] 2446. Determine if Two Events Have Conflict Solved leetCode Problem 2446 --- cpp/2446_Determine if Two Events Have Conflict.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cpp/2446_Determine if Two Events Have Conflict.cpp 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; + } +}; From bd86c585b665c976e8debbe6b752525aada422d6 Mon Sep 17 00:00:00 2001 From: Noob Coder <69426049+ranjit7858@users.noreply.github.com> Date: Tue, 25 Oct 2022 19:34:30 +0530 Subject: [PATCH 2/2] Update PARTICIPANTS.md --- PARTICIPANTS.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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))** + +---