From 4da5cd4fba01b4190c35552a90ae5b9194576f23 Mon Sep 17 00:00:00 2001 From: Tanmay-312 Date: Sat, 1 Jun 2024 16:59:29 +0530 Subject: [PATCH] Added codes for 1 June --- GeeksForGeeks/June/01-6-24/GFG.java | 48 ++++++++++++++++++++++++++++ GeeksForGeeks/June/01-6-24/README.md | 2 ++ LeetCode/June/01-6-24/README.md | 2 ++ LeetCode/June/01-6-24/Solution.java | 10 ++++++ 4 files changed, 62 insertions(+) create mode 100644 GeeksForGeeks/June/01-6-24/GFG.java create mode 100644 GeeksForGeeks/June/01-6-24/README.md create mode 100644 LeetCode/June/01-6-24/README.md create mode 100644 LeetCode/June/01-6-24/Solution.java diff --git a/GeeksForGeeks/June/01-6-24/GFG.java b/GeeksForGeeks/June/01-6-24/GFG.java new file mode 100644 index 0000000..2317986 --- /dev/null +++ b/GeeksForGeeks/June/01-6-24/GFG.java @@ -0,0 +1,48 @@ +//{ Driver Code Starts +import java.io.*; +import java.util.*; + +class GFG { + public static void main(String[] args) throws IOException { + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + int t; + t = Integer.parseInt(br.readLine()); + while (t-- > 0) { + + String s; + s = br.readLine(); + + Solution obj = new Solution(); + String res = obj.oddEven(s); + + System.out.println(res); + } + } +} + +// } Driver Code Ends + + + +class Solution +{ + public static String oddEven(String s) + { + // code here + int a[] = new int[27]; + for(int i=0; i