Skip to content

Commit

Permalink
Merge branch 'Spectrum-CETB:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-150 authored Oct 4, 2022
2 parents 82c5900 + 6a17a9e commit 088bc3f
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/issue-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Issue Report
about: Create a report to help us improve
title: ''
labels: ''
labels: App Development, approved, assigned
assignees: ''

---
Expand Down
10 changes: 9 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
- [ ] Any dependent changes have been merged and published in downstream modules
23 changes: 23 additions & 0 deletions coding_freshmen/JAVA/ABUZANAZAD/README.md
Original file line number Diff line number Diff line change
@@ -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)

```
11 changes: 11 additions & 0 deletions coding_freshmen/JAVA/ABUZANAZAD/SORT_01.java
Original file line number Diff line number Diff line change
@@ -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));
}
}

0 comments on commit 088bc3f

Please sign in to comment.