mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-19 00:37:02 +00:00
Update max_sub_array.py (#597)
This commit is contained in:
parent
5db9d2e54a
commit
39912aed57
|
@ -50,7 +50,7 @@ if __name__=='__main__':
|
||||||
tim.append(end-strt)
|
tim.append(end-strt)
|
||||||
print("No of Inputs Time Taken")
|
print("No of Inputs Time Taken")
|
||||||
for i in range(len(inputs)):
|
for i in range(len(inputs)):
|
||||||
print((inputs[i],'\t\t',tim[i]))
|
print(inputs[i],'\t\t',tim[i])
|
||||||
plt.plot(inputs,tim)
|
plt.plot(inputs,tim)
|
||||||
plt.xlabel("Number of Inputs");plt.ylabel("Time taken in seconds ")
|
plt.xlabel("Number of Inputs");plt.ylabel("Time taken in seconds ")
|
||||||
plt.show()
|
plt.show()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user