Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sorting-algorithms/Insertionsort.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class Insertionsort{
/*
* Edge-case behavior:
* - Negative size is rejected.
* - Size 0 exits early with "Nothing to sort/search".
* - Size 0 exits early with "Nothing to sort."
* - Null/empty arrays are ignored by the algorithm.
*/
public static void main(String[] args){
Expand All @@ -18,7 +18,7 @@ public static void main(String[] args){
return;
}
if (n == 0) {
System.out.println("Nothing to sort/search");
System.out.println("Nothing to sort.");
sc.close();
return;
}
Expand Down
Loading