Skip to content

Commit c676829

Browse files
authored
Apply suggestions from code review
1 parent 523344e commit c676829

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

pydatastructs/linear_data_structures/algorithms.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -856,18 +856,15 @@ def upper_bound(array, value, **kwargs):
856856
857857
array: OneDimensionalArray
858858
The array in which the upper bound has to be found.
859-
860859
start: int
861860
The staring index of the portion of the array in which the upper bound
862861
of a given value has to be looked for.
863862
Optional, by default 0
864-
865863
end: int, optional
866864
The ending index of the portion of the array in which the upper bound
867865
of a given value has to be looked for.
868866
Optional, by default the index
869867
of the last position filled.
870-
871868
comp: lambda/function
872869
The comparator which is to be used
873870
for specifying the desired ordering.
@@ -878,7 +875,7 @@ def upper_bound(array, value, **kwargs):
878875
Returns
879876
=======
880877
881-
output: int
878+
index: int
882879
Index of the upper bound of the given value in the given OneDimensionalArray.
883880
884881
Examples
@@ -926,18 +923,15 @@ def lower_bound(array, value, **kwargs):
926923
927924
array: OneDimensionalArray
928925
The array in which the lower bound has to be found.
929-
930926
start: int
931927
The staring index of the portion of the array in which the upper bound
932928
of a given value has to be looked for.
933929
Optional, by default 0
934-
935930
end: int, optional
936931
The ending index of the portion of the array in which the upper bound
937932
of a given value has to be looked for.
938933
Optional, by default the index
939934
of the last position filled.
940-
941935
comp: lambda/function
942936
The comparator which is to be used
943937
for specifying the desired ordering.
@@ -948,7 +942,7 @@ def lower_bound(array, value, **kwargs):
948942
Returns
949943
=======
950944
951-
output: int
945+
index: int
952946
Index of the lower bound of the given value in the given OneDimensionalArray
953947
954948
Examples

0 commit comments

Comments
 (0)