File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 250250 * [ Sum Of Subset] ( https://github.com/TheAlgorithms/Python/blob/master/dynamic_programming/sum_of_subset.py )
251251
252252## Electronics
253+ * [ Electric Power] ( https://github.com/TheAlgorithms/Python/blob/master/electronics/electric_power.py )
253254 * [ Ohms Law] ( https://github.com/TheAlgorithms/Python/blob/master/electronics/ohms_law.py )
254255
255256## File Transfer
Original file line number Diff line number Diff line change 99 For manual testing run:
1010 python pigeon_sort.py
1111"""
12+ from typing import List
1213
1314
14- def pigeon_sort (array ) :
15+ def pigeon_sort (array : List [ int ]) -> List [ int ] :
1516 """
1617 Implementation of pigeon hole sort algorithm
1718 :param array: Collection of comparable items
@@ -52,6 +53,7 @@ def pigeon_sort(array):
5253
5354if __name__ == "__main__" :
5455 import doctest
56+
5557 doctest .testmod ()
5658 user_input = input ("Enter numbers separated by comma:\n " )
5759 unsorted = [int (x ) for x in user_input .split ("," )]
You can’t perform that action at this time.
0 commit comments