Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishruth-S/CompetitiveCode
/ func
Function
func
Hackerrank_problems/Maximize_It!/solution.py:16–17 ·
view source on GitHub ↗
(nums)
Source
from the content-addressed store, hash-verified
14
15
# function computation
16
def
func(nums):
17
return
sum(x*x
for
x in nums) % M
18
19
# find and print the maximum value achievable by checking every combination
20
print(max(list(map(func, possible_combination))))
Callers
nothing calls this directly
Calls
1
sum
Function · 0.85
Tested by
no test coverage detected