Skip to content

Commit

Permalink
practical_file
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyajainn committed Oct 11, 2018
1 parent 75cb009 commit 09c4185
Show file tree
Hide file tree
Showing 32 changed files with 233 additions and 1,302 deletions.
32 changes: 32 additions & 0 deletions Bubble_sort.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//--------bubble sort---------//
using namespace std;
#include<iostream>
void bubble_sort(int a[],int n)
{
int temp;
for(int i=0;i<n-1;i++)
{
for(int j=0;j<n-i-1;j++)
{
if(a[j]>a[j+1])
{
temp = a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
for(int i=0;i<n;i++)
cout<<a[i]<<" ";

}
int main()
{
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)
cin>>arr[i];
bubble_sort(arr,n);

}
123 changes: 0 additions & 123 deletions DELETION_IN _BST.cpp.cpp

This file was deleted.

Binary file removed DELETION_IN _BST.cpp.exe
Binary file not shown.
72 changes: 0 additions & 72 deletions IN_ORDER_BINARY TREE.cpp

This file was deleted.

Binary file removed IN_ORDER_BINARY TREE.exe
Binary file not shown.
73 changes: 0 additions & 73 deletions POST_ORBER_BINARY_TREE.cpp.cpp

This file was deleted.

Binary file removed POST_ORBER_BINARY_TREE.cpp.exe
Binary file not shown.
72 changes: 0 additions & 72 deletions PRE_ORDER_BINARY_TREE,cpp.cpp

This file was deleted.

Binary file removed PRE_ORDER_BINARY_TREE,cpp.exe
Binary file not shown.
Loading

0 comments on commit 09c4185

Please sign in to comment.