mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-31 06:33:44 +00:00
fixed naming conventions
This commit is contained in:
parent
05162dd354
commit
b7df4ff8a9
|
@ -2,7 +2,7 @@ import doctest
|
||||||
from collections import Counter
|
from collections import Counter
|
||||||
|
|
||||||
|
|
||||||
def sockMerchant(n: int, ar: list[int]) -> int:
|
def sock_merchant(n: int, ar: list[int]) -> int:
|
||||||
"""
|
"""
|
||||||
>>> sockMerchant(9, [10, 20, 20, 10, 10, 30, 50, 10, 20])
|
>>> sockMerchant(9, [10, 20, 20, 10, 10, 30, 50, 10, 20])
|
||||||
3
|
3
|
||||||
|
@ -25,6 +25,6 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
ar = list(map(int, input().rstrip().split()))
|
ar = list(map(int, input().rstrip().split()))
|
||||||
|
|
||||||
result = sockMerchant(n, ar)
|
result = sock_merchant(n, ar)
|
||||||
print(result)
|
print(result)
|
||||||
doctest.testmod()
|
doctest.testmod()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user