Question
# 4 part of program of Find sorted arrays percentile # some test code Example but not whole part of code: def find_percentile(a, b, p):
# 4 part of program of Find sorted arrays percentile
# some test code Example but not whole part of code:
def find_percentile(a, b, p):
pass
if __name__ == "__main__":
test_a, test_b, test_p = [1, 2, 7, 8, 10], [6, 12], 50
# should print 7
print(find_percentile(test_a, test_b, test_p))
test_a, test_b, test_p = [1, 2, 7, 8], [6, 12], 50
# should print 6
print(find_percentile(test_a, test_b, test_p))
test_a, test_b, test_p = [15, 20, 35, 40, 50], [], 30
# should print 20
print(find_percentile(test_a, test_b, test_p))
test_a, test_b, test_p = [15, 20], [25, 40, 50], 40
# should print 20
print(find_percentile(test_a, test_b, test_p))
P-th percentile (0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started