Skip to content

Commit f5e0b18

Browse files
authored
Merge pull request thuva4#182 from Sudeepa14/master
Removed unwanted comments
2 parents 0efdff6 + 9109221 commit f5e0b18

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

MergeSort/Java/MergeSort.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
package com.dev.namhoai.sort;
2-
31
public class MergeSort {
42

53
public static void sort(int[] a) {

insertionsort.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
/*In insertion sort, we divide the initial unsorted array into two parts;
2-
* sorted part and unsorted part. Initially the sorted part just has one
3-
* element (Array of only 1 element is a sorted array). We then pick up
4-
* element one by one from unsorted part; insert into the sorted part at
5-
* the correct position and expand sorted part one element at a time.
1+
/*In insertion sort, we divide the initial unsorted array into two parts; +
2+
* sorted part and unsorted part. Initially the sorted part just has one
3+
* element (Array of only 1 element is a sorted array). We then pick up
4+
* element one by one from unsorted part; insert into the sorted part at
5+
* the correct position and expand sorted part one element at a time.
66
*/
7+
78
function insertionSort(unsortedList) {
89
var len = unsortedList.length;
910
for (var i = 1; i < len; i++) {
@@ -21,4 +22,4 @@ function insertionSort(unsortedList) {
2122

2223
var arr = [5, 3, 1, 2, 4, 8, 3, 8];
2324
insertionSort(arr);
24-
console.log(arr);
25+
console.log(arr);

0 commit comments

Comments
 (0)