Age | Commit message (Collapse) | Author |
|
This reverts commit d01f5507ebf75427118135debf7ff772315cb9fe.
|
|
|
|
|
|
|
|
|
|
|
|
Use the "set" functions instead of array.push and array.includes.
Update "seen" when adding entries to search queue to avoid the extra
loop that scanned the queue for duplicates.
Don't create lots of temporary arrays that create needless work
for the garbage collector.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
No need to check if it is 0.
|
|
|
|
|
|
Use iterator or other help function instead of creating temporary array.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|