diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..491b2f5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: bug, hacktoberfest +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/issue-report.md b/.github/ISSUE_TEMPLATE/issue-report.md index 1b3a7bb..e411256 100644 --- a/.github/ISSUE_TEMPLATE/issue-report.md +++ b/.github/ISSUE_TEMPLATE/issue-report.md @@ -2,7 +2,7 @@ name: Issue Report about: Create a report to help us improve title: '' -labels: '' +labels: App Development, approved, assigned assignees: '' --- diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 58a0a3f..adb9555 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,3 +1,11 @@ +--- +name: PR Template +about: Pull Request Template +title: '' +labels: hacktoberfest +assignees: '' + +--- # Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. @@ -24,4 +32,4 @@ Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have made corresponding changes to the documentation - [ ] I have added tests that prove my fix is effective or that my feature works -- [ ] Any dependent changes have been merged and published in downstream modules \ No newline at end of file +- [ ] Any dependent changes have been merged and published in downstream modules diff --git a/coding_freshmen/JAVA/ABUZANAZAD/README.md b/coding_freshmen/JAVA/ABUZANAZAD/README.md new file mode 100644 index 0000000..4de6d19 --- /dev/null +++ b/coding_freshmen/JAVA/ABUZANAZAD/README.md @@ -0,0 +1,23 @@ + +# SORT_01 + Q : You are given an array of 0s and 1s in random order. + + Segregate 0s on left side and 1s on right side of the array [Basically you have to sort the array]. + + Input array = [0, 1, 0, 1, 0, 0, 1, 1, 1, 0] + + Output array = [0, 0, 0, 0, 0, 1, 1, 1, 1, 1] + +# Problem Explanation 🚀 +It is a sorting of an array in ascending order + +# Your logic 🤯 +* I used the Java util package for it Scanner class for input and Arrays.sort method to sort the array in ascending order. +* Own test cases if any: +* Input array: [0,1,0,1,1,0,0] +* Output array: [0, 0, 0, 0, 1, 1, 1] + +// Time Complexity: O(N log N) +// Auxiliary Space: O(1) + +``` diff --git a/coding_freshmen/JAVA/ABUZANAZAD/SORT_01.java b/coding_freshmen/JAVA/ABUZANAZAD/SORT_01.java new file mode 100644 index 0000000..9256a80 --- /dev/null +++ b/coding_freshmen/JAVA/ABUZANAZAD/SORT_01.java @@ -0,0 +1,11 @@ +import java.util.Arrays; +class sort { + public static void main(String[] args) + { + int[] arr ={0,1,0,1,1,0,0}; + + Arrays.sort(arr); + + System.out.printf("Modified arr[] : %s", Arrays.toString(arr)); + } +}