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 1cdb880 commit b922f2dCopy full SHA for b922f2d
src/data-structures/circular-doubly-linked-list/circular-doubly-linked-list.js
@@ -459,10 +459,9 @@ class CircularDoublyLinkedList {
459
let i = 0;
460
461
/*
462
- * Traverse the list, keeping track of the previous position so
463
- * that we can remove the node once it's found. The loop is exited
464
- * when either the start of the list is encountered or `i` is no
465
- * longer less than `index` (meaning we have found the node to remove).
+ * Traverse the list and exit the loop when either the start of the
+ * list is encountered or `i` is no longer less than `index` (meaning
+ * we have found the node to remove).
466
*/
467
do {
468
0 commit comments