From 66e86d35261281fba3ba21322807798de026eede Mon Sep 17 00:00:00 2001
From: Pratyush Raj <42607563+pratyushraj7@users.noreply.github.com>
Date: Mon, 17 Oct 2022 22:33:25 +0530
Subject: [PATCH 1/2] Participants update
---
PARTICIPANTS.md | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/PARTICIPANTS.md b/PARTICIPANTS.md
index 5a2e2f4..d6f43eb 100644
--- a/PARTICIPANTS.md
+++ b/PARTICIPANTS.md
@@ -142,3 +142,11 @@
- š Connect with me: **[Piyushjar](https://github.com/piyushjar))**
---
+### Connect with me:
+
+
+
+- šØāš» My name is **Pratyush**
+- š± Iām a JavaScript Developer.
+- š« Reach me: **pratyushraj7@gmail.com**
+- š Connect with me: **[pratyushraj7](https://github.com/pratyushraj7))**
From 701ae8f15c20c62f707959282133e2463fdae39b Mon Sep 17 00:00:00 2001
From: Pratyush Raj <42607563+pratyushraj7@users.noreply.github.com>
Date: Mon, 17 Oct 2022 22:37:06 +0530
Subject: [PATCH 2/2] Create
Greatest-English-Letter-in-Upper-and-Lower-Case.cpp
---
...English-Letter-in-Upper-and-Lower-Case.cpp | 23 +++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 cpp/Greatest-English-Letter-in-Upper-and-Lower-Case.cpp
diff --git a/cpp/Greatest-English-Letter-in-Upper-and-Lower-Case.cpp b/cpp/Greatest-English-Letter-in-Upper-and-Lower-Case.cpp
new file mode 100644
index 0000000..29a5a9a
--- /dev/null
+++ b/cpp/Greatest-English-Letter-in-Upper-and-Lower-Case.cpp
@@ -0,0 +1,23 @@
+class Solution {
+public:
+ string greatestLetter(string s) {
+ string str = "";
+ unordered_map map;
+ for(char c : s){
+ map[c]++;
+ }
+
+ sort(s.begin(), s.end());
+
+ for(int i=s.size()-1 ; i>=0 ; i--){
+ char a = tolower(s[i]);
+ char b = toupper(s[i]);
+
+ if(map.find(a) != map.end() and map.find(b) != map.end()){
+ str = b;
+ break;
+ }
+ }
+ return str;
+ }
+};