From e571a97dcc6479ded16c47303f3b10275afce4bd Mon Sep 17 00:00:00 2001 From: fdai7303 Date: Mon, 20 Nov 2023 10:42:47 +0100 Subject: [PATCH] added SparseVector.java & CheckSparseVector.java --- CheckSparseVector.java | 3 +++ SparseVector.java | 0 Suchalgorythmen.java | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 CheckSparseVector.java create mode 100644 SparseVector.java diff --git a/CheckSparseVector.java b/CheckSparseVector.java new file mode 100644 index 0000000..41f6d54 --- /dev/null +++ b/CheckSparseVector.java @@ -0,0 +1,3 @@ +public class CheckSparseVector { + +} diff --git a/SparseVector.java b/SparseVector.java new file mode 100644 index 0000000..e69de29 diff --git a/Suchalgorythmen.java b/Suchalgorythmen.java index 293da02..797c30f 100644 --- a/Suchalgorythmen.java +++ b/Suchalgorythmen.java @@ -71,7 +71,7 @@ public class Suchalgorythmen { // number, exp is passed. exp is 10^i // where i is current digit number for (int exp = 1; m / exp > 0; exp *= 10) - COUNTINGSORT(arr, exp); + COUNTINGSORT(arr); } static void random(int arr[], int low, int high) {