Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/course-dasheng/fe-algorithm
/ right
Method
right
interview/heap.js:53–55 ·
view source on GitHub ↗
(k)
Source
from the content-addressed store, hash-verified
51
return
k*2
52
}
53
right(k){
54
return
k*2+1
55
}
56
parent(k){
57
return
Math.floor(k/2)
58
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected