MCPcopy 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
16def 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
20print(max(list(map(func, possible_combination))))

Callers

nothing calls this directly

Calls 1

sumFunction · 0.85

Tested by

no test coverage detected