MCPcopy
hub / github.com/HuberTRoy/leetCode / split

Method split

Sorted/SortList.py:160–167  ·  view source on GitHub ↗
(l)

Source from the content-addressed store, hash-verified

158 return result
159
160 def split(l):
161 if len(l) <= 1:
162 return l
163
164 _l = split(l[:len(l)//2])
165 _r = split(l[len(l)//2:])
166
167 return merge_sort(_l, _r)
168
169 lists = split(lists)
170

Callers 7

helperMethod · 0.80
deserializeMethod · 0.80
countSegmentsMethod · 0.80
numUniqueEmailsMethod · 0.80
wordPatternMethod · 0.80
simplifyPathMethod · 0.80
replaceWordsMethod · 0.80

Calls 1

splitFunction · 0.85

Tested by

no test coverage detected