Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ value_weight
Method
value_weight
other/greedy.py:19–20 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
17
return
self.weight
18
19
def
value_weight(self):
20
return
self.value / self.weight
21
22
23
def
build_menu(name, value, weight):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected