MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / solution.py

File solution.py

CSES_Problems/Repetitions/solution.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1def repeat_counts(n):
2 if len(n)==1: # checking for the length of n. If it is 1 then returns 1
3 return 1
4 maxx=c=0 # initializing maxx and c as 0. maxx is used for maximum check and c is used for counting

Callers

nothing calls this directly

Calls 1

repeat_countsFunction · 0.85

Tested by

no test coverage detected