From a8ea145d8973115024141a4252194d931f111b8e Mon Sep 17 00:00:00 2001 From: Shawn Date: Wed, 17 Oct 2018 00:20:54 +0800 Subject: [PATCH 01/20] Update README.md with contributor avatar pictures --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a6ad940..3b8b7206 100644 --- a/README.md +++ b/README.md @@ -35,12 +35,23 @@ https://hackerrank.com/challenges/[FILENAME_WITHOUT_EXTENSION]/problem | [Owais Ali](https://github.com/owaisalics/) | Pakistan | JAVA | | [Yuibun](https://github.com/yuibun/) | United States | C++ | | [Roopam Sharma](https://github.com/RoopamSharma/) | United States | Python3 | -| [Cass Smith](https://github.com/cassvs/) | Canada | C | +| [Cass Smith](https://github.com/cassvs/) | Canada | C | | [Advait Joshi](https://github.com/joshiadvait8/) | India | C++ | | [Archana Prabhu](https://github.com/ArchanaPrabhu/) | India | C++ | | [Carlos Gomez](https://github.com/Kurolox/) | Kurolox | | | [Saiij](https://github.com/Saiij/) | Germany | JavaScript | +## Contributor Pictures +| Name | | +|-------------------|----------------------------------------------------------------------------| +| Owais Ali | | +| Yuibun | | +| Roopam Sharma | | +| Cass Smith | | +| Advait Joshi | | +| Archana Prabhu | | +| Carlos Gomez | | +| Saiij | | ### License From e02a94acfe647e4ebfb085578c3e0c22d5598cdf Mon Sep 17 00:00:00 2001 From: Mohammad Sameer Date: Wed, 17 Oct 2018 19:21:56 +0530 Subject: [PATCH 02/20] Add solution of Codechef/SPCANDY --- Codechef/SPCANDY.cpp | 19 +++++++++++++++++++ README.md | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 Codechef/SPCANDY.cpp diff --git a/Codechef/SPCANDY.cpp b/Codechef/SPCANDY.cpp new file mode 100644 index 00000000..b6d0e47c --- /dev/null +++ b/Codechef/SPCANDY.cpp @@ -0,0 +1,19 @@ +#include + +using namespace std; + +int main() { + int t; + cin >> t; + + while (t-- > 0) { + long n, k; + cin >> n >> k; + + if (k == 0) + cout << "0 " << n << endl; + else + cout << n / k << " " << n % k << endl; + } + return 0; +} diff --git a/README.md b/README.md index a4d26322..b97938b1 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,8 @@ In this repository, you can find the solution code of problems from [Hackerrank] | [Jason Aiken](https://github.com/sinuoustalker/) | United States | | | [Saiij](https://github.com/Saiij/) | Germany | JavaScript | | [Apurva](https://github.com/alonemayank) | United States | Java | +| [Mohammad Sameer](https://github.com/m-sameer) | India | Java, C++ | + ### License From 88c7dbc456b5f633fde96a7a7744e97201d8349f Mon Sep 17 00:00:00 2001 From: Mohammad Sameer Date: Wed, 17 Oct 2018 19:32:10 +0530 Subject: [PATCH 03/20] Add solution for CodeChef/LADDU in Java --- Codechef/LADDU.java | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Codechef/LADDU.java diff --git a/Codechef/LADDU.java b/Codechef/LADDU.java new file mode 100644 index 00000000..1ff4eca7 --- /dev/null +++ b/Codechef/LADDU.java @@ -0,0 +1,53 @@ +import java.io.*; +import java.util.*; +class Laddu { + public static void main(String args[]) throws IOException { + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + PrintWriter out = new PrintWriter(System.out, true); + + int t = Integer.parseInt(br.readLine()); + while (t-- > 0) { + StringTokenizer st = new StringTokenizer(br.readLine(), " "); + + int numAct = Integer.parseInt(st.nextToken()); + int national = 0; + + if (st.nextToken().equals("INDIAN")) national = 1; + + int score = 0; + while (numAct-- > 0) { + score += laddus(br.readLine()); + } + + int perMonth = national == 0 ? 400 : 200; + out.println((score - (score % perMonth)) / perMonth); + } + + out.close(); + } + public static int laddus(String str) { + String[] arr = str.split(" "); + + if (arr.length == 1) { + switch (arr[0]) { + case "TOP_CONTRIBUTOR" : + return 300; + case "CONTEST_HOSTED" : + return 50; + default : + return 0; + } + } else { + switch (arr[0]) { + case "BUG_FOUND" : + return Integer.parseInt(arr[1]); + case "CONTEST_WON" : + if (Integer.parseInt(arr[1]) <= 20) { + return 300 + 20 - Integer.parseInt(arr[1]); + } else return 300; + default : + return 0; + } + } + } +} From ab6038fd3ab9a6212190c99418635003a8cf1f9f Mon Sep 17 00:00:00 2001 From: Mohammad Sameer Date: Wed, 17 Oct 2018 19:37:25 +0530 Subject: [PATCH 04/20] Add solution for CodeChef/SUMTRIAN in Java --- Codechef/SUMTRIAN.java | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Codechef/SUMTRIAN.java diff --git a/Codechef/SUMTRIAN.java b/Codechef/SUMTRIAN.java new file mode 100644 index 00000000..99e9c52d --- /dev/null +++ b/Codechef/SUMTRIAN.java @@ -0,0 +1,39 @@ +import java.util.Scanner; + +public class SumTrain { + public static void main(String[] args) { + Scanner scanner = new Scanner(System.in); + + int notc = scanner.nextInt(); + int nol; + short[][] arr; + for (int i = 0; i < notc; i++) { + + nol = scanner.nextInt(); + arr = new short[nol][nol]; + for (int j = 0; j < nol; j++) + for (int k = 0; k <= j; k++) + arr[j][k] = scanner.nextByte(); + + for (int j = 1; j < nol; j++) + for (int k = 0; k <= j; k++) + if (k == 0) + arr[j][k] += arr[j - 1][k]; + else if (j == k) + arr[j][k] += arr[j - 1][k - 1]; + else + arr[j][k] += max(arr[j - 1][k], arr[j - 1][k - 1]); + + long maxNum = arr[nol - 1][0]; + for (int j = 1; j < nol; j++) + if (maxNum < arr[nol - 1][j]) + maxNum = arr[nol - 1][j]; + System.out.println(maxNum); + } + } + + public static short max(short a, short b) { + + return a > b ? a : b; + } +} From 15d351e1e0755060a112d335a77854a3c57edb5a Mon Sep 17 00:00:00 2001 From: Mohammad Sameer Date: Wed, 17 Oct 2018 19:42:40 +0530 Subject: [PATCH 05/20] Add solution for CodeChef/FLOW009 in Java --- Codechef/FLOW009.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Codechef/FLOW009.java diff --git a/Codechef/FLOW009.java b/Codechef/FLOW009.java new file mode 100644 index 00000000..1bb08840 --- /dev/null +++ b/Codechef/FLOW009.java @@ -0,0 +1,21 @@ +import java.io.*; +class FLOW009 { + public static void main(String args[]) throws IOException { + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + PrintWriter out = new PrintWriter(System.out, true); + + int t = Integer.parseInt(br.readLine().trim()); + + while (t-- > 0) { + String[] tok = br.readLine().split(" "); + + double quan = Double.parseDouble(tok[0]); + double price = Double.parseDouble(tok[1]); + + double cost = quan * price; + if (quan > 1000) cost -= ((quan * price) / 100 * 10); + + out.printf("%.6f\n", cost); + } + } +} From f7a8779cf91320ddf2a4b9b46dcf2dc599225aad Mon Sep 17 00:00:00 2001 From: Shawn Date: Wed, 17 Oct 2018 23:57:00 +0800 Subject: [PATCH 06/20] Rearrange the avatar image --- README.md | 40 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 0b0fc1fa..f57e26ef 100644 --- a/README.md +++ b/README.md @@ -27,32 +27,20 @@ In this repository, you can find the solution code of problems from [Hackerrank] ## Contributors -| Name | Country | Programming Language | -|-------------------------------------------------------------------|-----------------------|--------------------------------| -| [Owais Ali](https://github.com/owaisalics/) | Pakistan | JAVA | -| [Yuibun](https://github.com/yuibun/) | United States | C++ | -| [Roopam Sharma](https://github.com/RoopamSharma/) | United States | Python3 | -| [Cass Smith](https://github.com/cassvs/) | Canada | C | -| [Advait Joshi](https://github.com/joshiadvait8/) | India | C++ | -| [Archana Prabhu](https://github.com/ArchanaPrabhu/) | India | C++ | -| [Aman Sharma](https://github.com/amsharma44/) | India | C# | -| [Carlos Gomez](https://github.com/Kurolox/) | Spain | | -| [Jason Aiken](https://github.com/sinuoustalker/) | United States | | -| [Saiij](https://github.com/Saiij/) | Germany | JavaScript | -| [Apurva](https://github.com/alonemayank) | United States | Java | - -## Contributor Pictures - -| Name | | -|-------------------|----------------------------------------------------------------------------| -| Owais Ali | | -| Yuibun | | -| Roopam Sharma | | -| Cass Smith | | -| Advait Joshi | | -| Archana Prabhu | | -| Carlos Gomez | | -| Saiij | | +| Name | Country | Programming Language | +|------------------------------------------------------------------------------------------------------------------------------------|-----------------------|--------------------------------| +| [Owais Ali](https://github.com/owaisalics/)
| Pakistan | JAVA | +| [Yuibun](https://github.com/yuibun/)
| United States | C++ | +| [Roopam Sharma](https://github.com/RoopamSharma/)
| United States | Python3 | +| [Cass Smith](https://github.com/cassvs/)
| Canada | C | +| [Advait Joshi](https://github.com/joshiadvait8/)
| India | C++ | +| [Archana Prabhu](https://github.com/ArchanaPrabhu/)
| India | C++ | +| [Aman Sharma](https://github.com/amsharma44/)
| India | C# | +| [Carlos Gomez](https://github.com/Kurolox/)
| Spain | | +| [Jason Aiken](https://github.com/sinuoustalker/)
| United States | | +| [Saiij](https://github.com/Saiij/)
| Germany | JavaScript | +| [Apurva](https://github.com/alonemayank)
| United States | Java | + ### License From 2c5eb7b72f3da0ae9fa464c8b1190351d163ac66 Mon Sep 17 00:00:00 2001 From: Shawn Date: Wed, 17 Oct 2018 23:58:19 +0800 Subject: [PATCH 07/20] Update Contributing.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 23f0a4fd..da67c34f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,6 +14,6 @@ it will be redirected to the actual problem page) - Place your source code file in respective folder (you can create a new folder if it is not present) - Optional - You can add comments at the start of the file, if you want to share something, like steps to run the code etc - Add and commit the changes. (Please do not make changes in any other file, but if you want to work on bug/improvement then add an issue first) -- Don't forget to add your name, country and the language used in contributors table in the README.md file +- Don't forget to add your name, image url, country and the language used in contributors table in the README.md file - Generate a Pull Request (Optional: add problem name in the title and url to the problem in description) - That's it, you have successfully completed your 1 out of 5 PRs. Well Done! From e9cd1552e15bd033e05cc01ffa5300b066ed7c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camila=20Ara=C3=BAjo?= Date: Wed, 17 Oct 2018 21:11:30 -0700 Subject: [PATCH 08/20] Cycle Detection --- ...whether-a-linked-list-contains-a-cycle.cpp | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Hackerrank/detect-whether-a-linked-list-contains-a-cycle.cpp diff --git a/Hackerrank/detect-whether-a-linked-list-contains-a-cycle.cpp b/Hackerrank/detect-whether-a-linked-list-contains-a-cycle.cpp new file mode 100644 index 00000000..e80f9c96 --- /dev/null +++ b/Hackerrank/detect-whether-a-linked-list-contains-a-cycle.cpp @@ -0,0 +1,22 @@ +#https://www.hackerrank.com/challenges/detect-whether-a-linked-list-contains-a-cycle/problem + +bool has_cycle(Node* head) { + + if (head == NULL || head->next == NULL){ + return false; + } + else{ + Node *runner = head->next->next; + + while (runner != NULL && runner != head){ + runner = runner->next->next; + head = head->next; + } + if (runner == NULL){ + return false; + } + else{ + return true; + } + } +} From be767da55bf0ef1948795af77b774335206eac41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camila=20Ara=C3=BAjo?= Date: Wed, 17 Oct 2018 21:13:27 -0700 Subject: [PATCH 09/20] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a4d26322..a8dde07e 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ In this repository, you can find the solution code of problems from [Hackerrank] | [Jason Aiken](https://github.com/sinuoustalker/) | United States | | | [Saiij](https://github.com/Saiij/) | Germany | JavaScript | | [Apurva](https://github.com/alonemayank) | United States | Java | +| [Camila](https://github.com/milaaraujo) | Canada | C++ | ### License From dbf4f11fbf72a5acf7ce776897f1cbeaa55d9921 Mon Sep 17 00:00:00 2001 From: Inzemam Date: Thu, 18 Oct 2018 12:15:48 +0530 Subject: [PATCH 10/20] Add solution for HackerRank/LeftRotation --- Hackerrank/array-left-rotation.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Hackerrank/array-left-rotation.cpp diff --git a/Hackerrank/array-left-rotation.cpp b/Hackerrank/array-left-rotation.cpp new file mode 100644 index 00000000..ebbbc647 --- /dev/null +++ b/Hackerrank/array-left-rotation.cpp @@ -0,0 +1,20 @@ +#include + +using namespace std; + +int main() { + int n, k; + scanf("%d %d", &n, &k); + + int arr[n]; + for (int i = 0; i < n; i++) + cin >> arr[i]; + + for (int j = k; j < n; j++) + cout << arr[j] << " "; + + for (int p = 0; p < k; p++) + cout << arr[p] << " "; + + return 0; +} From 9066f1b7c3abf0bd4b581581edbdfbc62583c79f Mon Sep 17 00:00:00 2001 From: Inzemam Date: Thu, 18 Oct 2018 12:26:12 +0530 Subject: [PATCH 11/20] Add solution for CodeChef/INTEST --- Codechef/INTEST.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Codechef/INTEST.cpp diff --git a/Codechef/INTEST.cpp b/Codechef/INTEST.cpp new file mode 100644 index 00000000..24e34aeb --- /dev/null +++ b/Codechef/INTEST.cpp @@ -0,0 +1,25 @@ +#include + +using namespace std; + +void readInt(int &n) { + static char c; + while ((c = getchar_unlocked()) && c <= ' '); + n = c - '0'; + + while ((c = getchar_unlocked()) && c > ' ') n = (n << 3) + (n << 1) + c - '0'; +} + +int main() { + int n, k; + readInt(n); readInt(k); + + int ans = 0; + while (n--) { + int foo; readInt(foo); + ans += foo % k == 0; + } + + printf("%d\n", ans); + return 0; +} \ No newline at end of file From 9cb39bc5ffbed40e1abd7f34701c3c9aa98fc83b Mon Sep 17 00:00:00 2001 From: Inzemam Date: Thu, 18 Oct 2018 12:30:05 +0530 Subject: [PATCH 12/20] Add solution for CodeChef/VOTERS --- Codechef/VOTERS.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Codechef/VOTERS.cpp diff --git a/Codechef/VOTERS.cpp b/Codechef/VOTERS.cpp new file mode 100644 index 00000000..962e16cb --- /dev/null +++ b/Codechef/VOTERS.cpp @@ -0,0 +1,34 @@ +#include +#include +#include +#include + +using namespace std; + +int main() { + map m; + + int a, b, c; + scanf("%d %d %d", &a, &b, &c); + + int temp; + for (int i = 0; i < a + b + c; i++) { + scanf("%d", &temp); + m.insert(pair(temp, m[temp]++)); + } + + map :: iterator itr; + int counter = 0; + for (itr = m.begin(); itr != m.end(); ++itr) { + if (itr->second >= 2) + counter++; + } + + printf("%d\n", counter); + for (itr = m.begin(); itr != m.end(); ++itr) { + if (itr->second >= 2) + printf("%d\n", itr->first); + } + + return 0; +} From 4ebc64ef59e6216eb962d45b1839cdeb0fbcdbf6 Mon Sep 17 00:00:00 2001 From: Inzemam Date: Thu, 18 Oct 2018 12:36:01 +0530 Subject: [PATCH 13/20] Add solution for CodeChef/MAXDIFF --- Codechef/MAXDIFF.cpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Codechef/MAXDIFF.cpp diff --git a/Codechef/MAXDIFF.cpp b/Codechef/MAXDIFF.cpp new file mode 100644 index 00000000..eb302d53 --- /dev/null +++ b/Codechef/MAXDIFF.cpp @@ -0,0 +1,38 @@ +#include +#include + +using namespace std; + +int main() { + int t; + scanf("%d", &t); + + while (t-- > 0) { + int n, k; + scanf("%d %d", &n, &k); + + int arr[n]; + int totalSum = 0; + for (int i = 0; i < n; i++) { + cin >> arr[i]; + + totalSum += arr[i]; + } + + sort(arr, arr + n); + + if (k > n / 2) + k = n - k; + int sumSon = 0, sumFather = 0; + for (int i = 0; i < k; i++) + sumSon += arr[i]; + + sumFather = totalSum - sumSon; + + int diff = sumFather - sumSon; + + printf("%d\n", diff); + } + + return 0; +} From 1c00eefe177725e6466fe483d608f68dd7080b26 Mon Sep 17 00:00:00 2001 From: theanubhava Date: Thu, 18 Oct 2018 12:51:51 +0530 Subject: [PATCH 14/20] Created staircase.java after successfull hackerrank submission --- Hackerrank/staircase.java | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Hackerrank/staircase.java diff --git a/Hackerrank/staircase.java b/Hackerrank/staircase.java new file mode 100644 index 00000000..1a938529 --- /dev/null +++ b/Hackerrank/staircase.java @@ -0,0 +1,27 @@ +import java.io.*; +import java.math.*; +import java.security.*; +import java.text.*; +import java.util.*; +import java.util.concurrent.*; +import java.util.regex.*; + public class Solution { + // Complete the staircase function below. + static void staircase(int n) { + int m=n; + + while(n!=0){ + n--; + for(int i=0;i Date: Thu, 18 Oct 2018 12:49:25 +0530 Subject: [PATCH 15/20] Update README.md Add my name in the credits. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7366e48a..58eede79 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ In this repository, you can find the solution code of problems from [Hackerrank] | [Apurva](https://github.com/alonemayank)
| United States | Java | | [Camila](https://github.com/milaaraujo)
| Canada | C++ | | [Mohammad Sameer](https://github.com/m-sameer)
| India | Java, C++ | +| [Inzemam Ul-Haq](https://github.com/Virusthegreat)
| India | C++ | ### License From 639d87fe48053ba1c3df2bd42b7374b9b4f9a67d Mon Sep 17 00:00:00 2001 From: theanubhava Date: Thu, 18 Oct 2018 12:56:13 +0530 Subject: [PATCH 16/20] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7366e48a..77a7eea4 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ In this repository, you can find the solution code of problems from [Hackerrank] | [Apurva](https://github.com/alonemayank)
| United States | Java | | [Camila](https://github.com/milaaraujo)
| Canada | C++ | | [Mohammad Sameer](https://github.com/m-sameer)
| India | Java, C++ | +| [Anubhav Gupta](https://github.com/theanubhava)
| India | Java, | ### License From af6abac9f126f5008c060c12a4dd7707810a6687 Mon Sep 17 00:00:00 2001 From: Bertram Truong Date: Thu, 18 Oct 2018 19:48:47 +1100 Subject: [PATCH 17/20] Fix grammar and typos in README --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3f98866a..3cfe4ba9 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,17 @@ [![GitHub issues by-label](https://img.shields.io/github/issues-pr-closed-raw/ows-ali/Hacktoberfest.svg)](https://github.com/ows-ali/Hacktoberfest/pulls?q=is%3Apr+is%3Aclosed) [![GitHub issues by-label](https://img.shields.io/github/issues-pr/ows-ali/Hacktoberfest.svg)](https://github.com/ows-ali/Hacktoberfest/pulls?q=is%3Aopen+is%3Apr) -This repositry is mainly open to those who are willing to generate PR for Hacktoberfest to get started with GitHub and open source world. -In this repository, you can find the solution code of problems from [Hackerrank](https://hackerrank.com). +This repository is mainly open to those who are looking to make some PR for the Hacktoberfest event, and to get started with GitHub and the open-source world. +In this repository, you can find the solutions (as source code) for the problems in [HackerRank](https://hackerrank.com). ### Why contribute to this repository -- Beginners Friendly -- You can generate your first PR on GitHub -- You can start with any problem of your choice on [Hackerrank](https://hackerrank.com), [Codechef](https://codechef.com) -- Good Chance to Win a T-Shirt by participating in [Hacktoberfest](hacktoberfest.digitalocean.com) +- Beginner-friendly +- Create your first Pull Request on GitHub +- Start with any problem of your choice on [HackerRank](https://hackerrank.com) or [Codechef](https://codechef.com) +- Chance of receiving a T-Shirt for participating in the [Hacktoberfest](hacktoberfest.digitalocean.com) ### How to Contribute (Updated) -- For contributions in this repostiory, please read CONTRIBUTIONS.md first. (Please pull the changes from this repo if you have already forked the repository and facing conflicts) +- For contributions in this repostiory, please read `CONTRIBUTIONS.md` first. (Please pull the changes from this repo if you have already forked the repository and are facing conflicts) - If you like the repository, please star it. ### Learning Resources From 2faa4c1889f1c9dabc59fdfb57431895d924f431 Mon Sep 17 00:00:00 2001 From: Bertram Truong Date: Thu, 18 Oct 2018 20:43:02 +1100 Subject: [PATCH 18/20] Added bt to contributors, fixed more typos --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3cfe4ba9..5625db50 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ In this repository, you can find the solutions (as source code) for the problems - Chance of receiving a T-Shirt for participating in the [Hacktoberfest](hacktoberfest.digitalocean.com) ### How to Contribute (Updated) -- For contributions in this repostiory, please read `CONTRIBUTIONS.md` first. (Please pull the changes from this repo if you have already forked the repository and are facing conflicts) +- For contributions in this repository, please read `CONTRIBUTING.md` first. (Please pull the changes from this repo if you have already forked the repository and are facing conflicts) - If you like the repository, please star it. ### Learning Resources @@ -32,7 +32,7 @@ In this repository, you can find the solutions (as source code) for the problems | [Owais Ali](https://github.com/owaisalics/)
| Pakistan | JAVA | | [Yuibun](https://github.com/yuibun/)
| United States | C++ | | [Roopam Sharma](https://github.com/RoopamSharma/)
| United States | Python3 | -| [Cass Smith](https://github.com/cassvs/)
| Canada | C | +| [Cass Smith](https://github.com/cassvs/)
| Canada | C | | [Advait Joshi](https://github.com/joshiadvait8/)
| India | C++ | | [Archana Prabhu](https://github.com/ArchanaPrabhu/)
| India | C++ | | [Aman Sharma](https://github.com/amsharma44/)
| India | C# | @@ -41,9 +41,10 @@ In this repository, you can find the solutions (as source code) for the problems | [Saiij](https://github.com/Saiij/)
| Germany | JavaScript | | [Apurva](https://github.com/alonemayank)
| United States | Java | | [Camila](https://github.com/milaaraujo)
| Canada | C++ | -| [Mohammad Sameer](https://github.com/m-sameer)
| India | Java, C++ | -| [Anubhav Gupta](https://github.com/theanubhava)
| India | Java, | +| [Mohammad Sameer](https://github.com/m-sameer)
| India | Java, C++ | +| [Anubhav Gupta](https://github.com/theanubhava)
| India | Java, | | [Inzemam Ul-Haq](https://github.com/Virusthegreat)
| India | C++ | +| [Bertram Truong](https://github.com/bt)
| Australia | | ### License From 24473642454d093baf84cc666c8d549c3e0da640 Mon Sep 17 00:00:00 2001 From: Owais Ali Date: Thu, 18 Oct 2018 18:03:20 +0500 Subject: [PATCH 19/20] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5625db50..818f9f87 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,12 @@ [![GitHub issues by-label](https://img.shields.io/github/issues-pr/ows-ali/Hacktoberfest.svg)](https://github.com/ows-ali/Hacktoberfest/pulls?q=is%3Aopen+is%3Apr) This repository is mainly open to those who are looking to make some PR for the Hacktoberfest event, and to get started with GitHub and the open-source world. -In this repository, you can find the solutions (as source code) for the problems in [HackerRank](https://hackerrank.com). +In this repository, you can find the solutions (as source code) for the problems in [HackerRank](https://hackerrank.com), [Codechef](https://codechef.com) or any other online platform ### Why contribute to this repository - Beginner-friendly - Create your first Pull Request on GitHub -- Start with any problem of your choice on [HackerRank](https://hackerrank.com) or [Codechef](https://codechef.com) +- Start with any problem of your choice on [HackerRank](https://hackerrank.com), [Codechef](https://codechef.com) etc - Chance of receiving a T-Shirt for participating in the [Hacktoberfest](hacktoberfest.digitalocean.com) ### How to Contribute (Updated) From 92fa5f1417e8b78c6bb0cb4fd7630ca257c306c6 Mon Sep 17 00:00:00 2001 From: Owais Ali Date: Thu, 18 Oct 2018 18:18:09 +0500 Subject: [PATCH 20/20] Create config.yml to setup welcome bot --- config.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 config.yml diff --git a/config.yml b/config.yml new file mode 100644 index 00000000..1f8b8734 --- /dev/null +++ b/config.yml @@ -0,0 +1,21 @@ +# Configuration for welcome - https://github.com/behaviorbot/welcome + +# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome + +# Comment to be posted to on first time issues +newIssueWelcomeComment: > + I see that this is your first issue ever. Thanks for opening your first issue here! + +# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome + +# Comment to be posted to on PRs from first time contributors in your repository +newPRWelcomeComment: > + Hey ows-ali/Hacktoberfest can see that this is your first pull request! Keep going, you rock! + +# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge + +# Comment to be posted to on pull requests merged by a first time user +firstPRMergeComment: > + Congrats on merging your first pull request! Keep it up! + +# It is recommend to include as many gifs and emojis as possible