Compare commits
No commits in common. "11f8bf5394edf36b03e816da46acaf5d07f00e02" and "e867f69ad90525821066f3b07a9d105cba430e12" have entirely different histories.
11f8bf5394
...
e867f69ad9
@ -29,4 +29,3 @@ Repository for CDS-2020 Programming and Promt Engineering II
|
||||
|PaginationHelper|kata_pagination_helper.py|test_pagination_helper.py|[515bb423de843ea99400000a](https://www.codewars.com/kata/515bb423de843ea99400000a)|
|
||||
|Who has the most money?|kata_who_the_most_money.py|test_who_the_most_money.py|[528d36d7cc451cd7e4000339](https://www.codewars.com/kata/528d36d7cc451cd7e4000339)|
|
||||
|Next bigger number with the same digits|kata_next_bigger_number_same_digits.py|test_next_bigger_number_same_digits.py|[55983863da40caa2c900004e](https://www.codewars.com/kata/55983863da40caa2c900004e)|
|
||||
|Snail|kata_snail.py|test_snail.py|[521c2db8ddc89b9b7a0000c1](https://www.codewars.com/kata/521c2db8ddc89b9b7a0000c1)|
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
def snail(snail_map):
|
||||
snail = []
|
||||
snail.append(snail_map[0])
|
||||
snail_map.pop(0)
|
||||
print(snail)
|
||||
return snail_map
|
||||
|
||||
|
||||
array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
|
||||
print(snail(array))
|
||||
@ -1,10 +0,0 @@
|
||||
from src.codewars.kata_snail import snail
|
||||
|
||||
|
||||
def test_snail():
|
||||
array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
|
||||
|
||||
assert snail(array) == [1, 2, 3, 6, 9, 8, 7, 4, 5]
|
||||
|
||||
array = [[1, 2, 3], [8, 9, 4], [7, 6, 5]]
|
||||
assert snail(array) == [1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
Loading…
x
Reference in New Issue
Block a user