MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / main

Function main

data_structures/linked_list/skip_list.py:426–441  ·  view source on GitHub ↗

>>> pytests()

()

Source from the content-addressed store, hash-verified

424
425
426def main():
427 """
428 >>> pytests()
429 """
430
431 skip_list = SkipList()
432 skip_list.insert(2, "2")
433 skip_list.insert(4, "4")
434 skip_list.insert(6, "4")
435 skip_list.insert(4, "5")
436 skip_list.insert(8, "4")
437 skip_list.insert(9, "4")
438
439 skip_list.delete(4)
440
441 print(skip_list)
442
443
444if __name__ == "__main__":

Callers 1

skip_list.pyFile · 0.70

Calls 3

insertMethod · 0.95
deleteMethod · 0.95
SkipListClass · 0.85

Tested by

no test coverage detected