Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ functions
Functions
3,909 in github.com/TheAlgorithms/Python
⨍
Functions
3,909
◇
Types & classes
310
↳
Endpoints
2
Method
test_collinear_points
Test that collinear points return empty hull.
geometry/tests/test_jarvis_march.py:47
Function
test_compare_random
(hand, other, expected)
project_euler/problem_054/test_poker_hand.py:183
Function
test_compare_simple
(hand, other, expected)
project_euler/problem_054/test_poker_hand.py:178
Method
test_component
test for method component()
linear_algebra/src/test_linear_algebra.py:25
Method
test_component_matrix
test for Matrix method component()
linear_algebra/src/test_linear_algebra.py:179
Function
test_consecutive_orientation
Test orientation calculation.
geometry/tests/test_graham_scan.py:207
Method
test_contains_edge
(self)
graphs/graph_adjacency_matrix.py:412
Method
test_contains_edge
(self)
graphs/graph_adjacency_list.py:400
Method
test_contains_edge_exception_check
(self)
graphs/graph_adjacency_matrix.py:588
Method
test_contains_edge_exception_check
(self)
graphs/graph_adjacency_list.py:576
Method
test_contains_vertex
(self)
graphs/graph_adjacency_matrix.py:311
Method
test_contains_vertex
(self)
graphs/graph_adjacency_list.py:299
Function
test_convert_to_negative
()
digital_image_processing/test_digital_image_processing.py:27
Function
test_convolve_filter
()
digital_image_processing/test_digital_image_processing.py:64
Method
test_copy
test for method copy()
linear_algebra/src/test_linear_algebra.py:111
Function
test_custom_sort_five_high_straight
()
project_euler/problem_054/test_poker_hand.py:196
Method
test_determinant
test for Matrix method determinant()
linear_algebra/src/test_linear_algebra.py:155
Function
test_doubly_linked_list
>>> test_doubly_linked_list()
data_structures/linked_list/doubly_linked_list.py:191
Function
test_duplicate_points
Test with all duplicate points.
geometry/tests/test_graham_scan.py:23
Method
test_duplicate_points
Test handling of duplicate points.
geometry/tests/test_jarvis_march.py:97
Method
test_easy_case
test for the easy case
knapsack/tests/test_knapsack.py:31
Function
test_edge_cases
Test edge cases such as an empty KD-Tree.
data_structures/kd_tree/tests/test_kdtree.py:88
Method
test_empty
(self)
data_structures/binary_tree/binary_search_tree_recursive.py:497
Method
test_empty_list
Test empty list returns empty hull.
geometry/tests/test_jarvis_march.py:77
Function
test_empty_points
Test with no points.
geometry/tests/test_graham_scan.py:8
Function
test_end_to_end
>>> test_end_to_end() 'Hello, this is a modified Caesar cipher'
ciphers/shuffled_shift_cipher.py:172
Function
test_euclidean_distance
Test Euclidean distance calculation.
geometry/tests/test_graham_scan.py:199
Method
test_euclidean_length
test for method euclidean_length()
linear_algebra/src/test_linear_algebra.py:48
Function
test_euler_project
()
project_euler/problem_054/test_poker_hand.py:214
Method
test_exists
(self)
data_structures/binary_tree/binary_search_tree_recursive.py:509
Function
test_f1
(x, y)
searches/simulated_annealing.py:99
Function
test_f1
(x, y)
searches/hill_climbing.py:167
Function
test_f2
(x, y)
searches/simulated_annealing.py:122
Function
test_f2
(x, y)
searches/hill_climbing.py:188
Function
test_fetch_github_info
(monkeypatch)
web_programming/test_fetch_github_info.py:8
Function
test_float_number
(function)
maths/test_factorial.py:37
Function
test_gen_gaussian_kernel
()
digital_image_processing/test_digital_image_processing.py:43
Function
test_gen_gaussian_kernel_filter
()
digital_image_processing/test_digital_image_processing.py:60
Method
test_get_max_label
(self)
data_structures/binary_tree/binary_search_tree_recursive.py:515
Method
test_get_min_label
(self)
data_structures/binary_tree/binary_search_tree_recursive.py:524
Function
test_greedy
>>> food = ["Burger", "Pizza", "Coca Cola", "Rice", ... "Sambhar", "Chicken", "Fries", "Milk"] >>> value = [80, 100, 60, 70, 50,
other/greedy.py:42
Function
test_hand_is_five_high_straight
(hand, expected, card_values)
project_euler/problem_054/test_poker_hand.py:161
Function
test_hand_is_flush
(hand, expected)
project_euler/problem_054/test_poker_hand.py:151
Function
test_hand_is_same_kind
(hand, expected)
project_euler/problem_054/test_poker_hand.py:168
Function
test_hand_is_straight
(hand, expected)
project_euler/problem_054/test_poker_hand.py:156
Function
test_hand_sorted
()
project_euler/problem_054/test_poker_hand.py:187
Function
test_hand_values
(hand, expected)
project_euler/problem_054/test_poker_hand.py:173
Function
test_hash_map_is_the_same_as_dict
(operations)
data_structures/hashing/tests/test_hash_map.py:77
Function
test_heap
>>> h = Heap() # Max-heap >>> h.insert_item(5, 34) >>> h.insert_item(6, 31) >>> h.insert_item(7, 37) >>> h.get_top() [7, 37]
data_structures/heap/heap_generic.py:131
Function
test_identity
()
matrix/tests/test_matrix_operation.py:104
Method
test_improper_a_b_dimensions
(self)
linear_algebra/src/schur_complement.py:77
Method
test_improper_b_c_dimensions
(self)
linear_algebra/src/schur_complement.py:85
Method
test_init_check
(self)
graphs/graph_adjacency_matrix.py:289
Method
test_init_check
(self)
graphs/graph_adjacency_list.py:278
Method
test_inorder_traversal
(self)
data_structures/binary_tree/binary_search_tree_recursive.py:533
Function
test_instagram_user
A self running doctest >>> test_instagram_user()
web_programming/instagram_crawler.py:110
Method
test_is_empty
(self)
data_structures/binary_tree/binary_search_tree_recursive.py:502
Function
test_johnson_basic
()
graphs/tests/test_johnson.py:8
Function
test_johnson_negative_cycle
()
graphs/tests/test_johnson.py:21
Method
test_knapsack
test for the knapsack
knapsack/tests/test_knapsack.py:41
Method
test_knapsack_repetition
test for the knapsack repetition
knapsack/tests/test_knapsack.py:51
Function
test_kruskal_successful_result
()
graphs/tests/test_min_spanning_tree_kruskal.py:4
Function
test_large_hull
Test with a larger set of points.
geometry/tests/test_graham_scan.py:220
Function
test_large_number
(function)
maths/test_factorial.py:26
Method
test_lcm_function
(self)
maths/least_common_multiple.py:65
Function
test_linear_discriminant_analysis
()
machine_learning/dimensionality_reduction.py:164
Function
test_local_binary_pattern
()
digital_image_processing/test_digital_image_processing.py:100
Method
test_match_hashes
(self)
hashes/sha256.py:202
Function
test_median_filter
()
digital_image_processing/test_digital_image_processing.py:71
Function
test_min_max
Tests the min and max functions in the tree.
data_structures/binary_tree/red_black_tree.py:645
Method
test_minor
test for Matrix method minor()
linear_algebra/src/test_linear_algebra.py:135
Function
test_motion
Test motion >>> test_motion()
physics/horizontal_projectile_motion.py:138
Method
test_mul
test for * operator
linear_algebra/src/test_linear_algebra.py:81
Function
test_multiple_calls_five_high_straight
()
project_euler/problem_054/test_poker_hand.py:203
Function
test_multiplication
(mat1, mat2)
matrix/tests/test_matrix_operation.py:78
Function
test_nearest_neighbour
( file_path: str = "digital_image_processing/image_data/lena_small.jpg", )
digital_image_processing/test_digital_image_processing.py:92
Function
test_nearest_neighbour_search
Test the nearest neighbor search function.
data_structures/kd_tree/tests/test_kdtree.py:61
Method
test_negative_max_weight
Returns ValueError for any negative max_weight value :return: ValueError
knapsack/tests/test_greedy_knapsack.py:23
Function
test_negative_number
(function)
maths/test_factorial.py:31
Method
test_negative_profit_value
Returns ValueError for any negative profit value in the list :return: ValueError
knapsack/tests/test_greedy_knapsack.py:33
Method
test_negative_weight_value
Returns ValueError for any negative weight value in the list :return: ValueError
knapsack/tests/test_greedy_knapsack.py:43
Function
test_no_new_methods_was_added_to_api
()
data_structures/hashing/tests/test_hash_map.py:90
Method
test_not_primes
(self)
maths/prime_check.py:73
Method
test_null_max_weight
Returns ValueError for any zero max_weight value :return: ValueError
knapsack/tests/test_greedy_knapsack.py:53
Method
test_pentagon
Test convex hull of a pentagon.
geometry/tests/test_jarvis_march.py:104
Function
test_point_comparison
Test Point comparison for sorting.
geometry/tests/test_graham_scan.py:188
Method
test_point_creation
Test Point initialization.
geometry/tests/test_jarvis_march.py:11
Function
test_point_equality
Test Point equality.
geometry/tests/test_graham_scan.py:178
Method
test_point_equality
Test Point equality comparison.
geometry/tests/test_jarvis_march.py:17
Method
test_point_hash
Test Point hashing.
geometry/tests/test_jarvis_march.py:30
Method
test_point_repr
Test Point string representation.
geometry/tests/test_jarvis_march.py:25
Function
test_positive_integers
(function)
maths/test_factorial.py:19
Method
test_preorder_traversal
(self)
data_structures/binary_tree/binary_search_tree_recursive.py:539
Function
test_prim_successful_result
()
graphs/tests/test_min_spanning_tree_prim.py:6
Method
test_primes
(self)
maths/prime_check.py:61
Function
test_principal_component_analysis
()
machine_learning/dimensionality_reduction.py:183
Function
test_project_euler
Testing for all Project Euler solutions
scripts/validate_solutions.py:98
Method
test_put
(self)
data_structures/binary_tree/binary_search_tree_recursive.py:307
Function
test_random_order
Test that point order doesn't affect the result.
geometry/tests/test_graham_scan.py:246
Function
test_rectangle
Test with a rectangle (4 points).
geometry/tests/test_graham_scan.py:56
← previous
next →
3,701–3,800 of 3,909, ranked by callers