Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BubbleSort recursive implementation in Java #274

Merged
merged 3 commits into from
Oct 16, 2018
Merged

BubbleSort recursive implementation in Java #274

merged 3 commits into from
Oct 16, 2018

Conversation

sameerchoubey
Copy link
Contributor

@sameerchoubey sameerchoubey commented Oct 4, 2018

BubbleSortRecursive.java | Adding the BubbleSort Algorithm implementation in Java

This adds BubbleSort Algorithm which sorts the elements present in an array. The time complexity of the algorithms is O(n^2).

Issue Link - #18


//calling the method and passing the array in it.
bubble(nums, nums.length);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains following spacing inconsistencies:

  • Trailing whitespaces.

Origin: SpaceConsistencyBear, Section: all.pyjava.

The issue can be fixed by applying the following patch:

--- a/tmp/tmpddmzpmr6/bubble_sort/Java/BubbleSortRecursive.java
+++ b/tmp/tmpddmzpmr6/bubble_sort/Java/BubbleSortRecursive.java
@@ -1,6 +1,6 @@
 public class BubbleSortRecursive {
     public static void main(String[] args){
-    
+
     //Taking a sample array for sorting it.
         int[] nums = {12, 45, 23, 78, 67};
 

@sangamcse
Copy link
Member

@sangamcse rebase

@sangamcse
Copy link
Member

Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently ⚠️

sameerchoubey and others added 2 commits October 16, 2018 12:52
This adds the recursive implementation of BubbleSort Algorithm in Java.
The time complexity of the algorithm is O(n^2).

Closes #18
@sangamcse
Copy link
Member

Automated rebase with GitMate.io was successful! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants