Discover Packages
github.com/jeresc/dsa-golang
array-hashing
package
Version:
v0.0.0-...-eae1879
Opens a new window with list of versions in this module.
Published: Jan 25, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Time Complexity O(n^2)
Space Complexity O(n)
func LongestConsecutive(nums []int ) int
Time Complexity O(n)
Space Complexity O(n)
Decodes a single string to a list of strings.
Time Complexity O(m)
Where m is the sum of lengths of all the strings and n is the number of strings.
Space Complexity O(1)
Encodes a list of strings to a single string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.