Browse Source

Paul: Überarbeitung getElement

master
paul-anton.engel@informatik.hs-fulda.de 1 year ago
parent
commit
5e4418376b
  1. 2
      SparseVector.java

2
SparseVector.java

@ -69,7 +69,7 @@ public class SparseVector {
Node now = this.head; Node now = this.head;
while (now != null && now.index < index) { while (now != null && now.index < index) {
if (now != null && now.index == index) {
if (now.index == index) {
return now.value; return now.value;
} }
now = now.next; now = now.next;

Loading…
Cancel
Save