package
Version:
v0.0.0-...-36687a4
Opens a new window with list of versions in this module.
Published: Oct 28, 2020
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type LL struct {
Value int
Next *LL
}
LL is a linked list of integers.
func RemoveConsecutiveSumZero(head *LL) *LL
RemoveConsecutiveSumZero removes all sublists that sum to zero.
Runs in O(N^2) time and O(1) space.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.