Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eee560 commit e17a272Copy full SHA for e17a272
src/data-structures/linked-list.js
@@ -235,13 +235,15 @@
235
return;
236
}
237
inverse(next, next.next);
238
+ next.prev = next.next;
239
next.next = current;
240
241
242
if (!this.first) {
243
244
245
inverse(this.first, this.first.next);
246
+ this.first.prev = this.first.next;
247
this.first.next = null;
248
var temp = this.first;
249
this.first = this.last;
0 commit comments