mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 17:56:02 +08:00
Merge pull request #362 from LeeChungWan/Misc
Modified Data Misc folder .java file name and class name
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
public class HeapSort
|
public class heap_sort
|
||||||
{
|
{
|
||||||
public void sort(int arr[])
|
public void sort(int arr[])
|
||||||
{
|
{
|
||||||
@ -64,7 +64,7 @@ public class HeapSort
|
|||||||
int arr[] = {12, 11, 13, 5, 6, 7};
|
int arr[] = {12, 11, 13, 5, 6, 7};
|
||||||
int n = arr.length;
|
int n = arr.length;
|
||||||
|
|
||||||
HeapSort ob = new HeapSort();
|
heap_sort ob = new heap_sort();
|
||||||
ob.sort(arr);
|
ob.sort(arr);
|
||||||
|
|
||||||
System.out.println("Sorted array is");
|
System.out.println("Sorted array is");
|
||||||
|
Reference in New Issue
Block a user