Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Go
/ LpsRec
Function
LpsRec
dynamic/longestpalindromicsubsequence.go:22–24 ·
view source on GitHub ↗
LpsRec function
(word string)
Source
from the content-addressed store, hash-verified
20
21
// LpsRec function
22
func
LpsRec(word string) int {
23
return
lpsRec(word, 0, len(word)-1)
24
}
25
26
// LpsDp function
27
func
LpsDp(word string) int {
Callers
nothing calls this directly
Calls
1
lpsRec
Function · 0.85
Tested by
no test coverage detected