mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 17:56:02 +08:00
Add else clause for node (#3014)
Co-authored-by: Samir M'Sallem <samir.msallem@valtech-mobility.com> Co-authored-by: Andrii Siriak <siryaka@gmail.com>
This commit is contained in:
@ -105,6 +105,8 @@ public class HashMap {
|
|||||||
} else {
|
} else {
|
||||||
n.setNext(n.getNext().getNext());
|
n.setNext(n.getNext().getNext());
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
delete(n.getNext(), key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user