Skip to content

Commit 97f4396

Browse files
committed
Fixed error with function docstring
1 parent d594f68 commit 97f4396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydatastructs/linear_data_structures/algorithms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,11 +1881,11 @@ def longest_alternating_subsequence(array: OneDimensionalArray, **kwargs) -> int
18811881
>>> arr = OneDimensionalArray(int, [1, 5, 4])
18821882
>>> las = longest_alternating_subsequence(arr)
18831883
>>> str(las)
1884-
'[1, 5, 4]'
1884+
3
18851885
>>> arr = OneDimensionalArray(int, [1, 5, 4, 3, 2, 6, 7])
18861886
>>> las = longest_alternating_subsequence(arr)
18871887
>>> str(las)
1888-
'[1, 5, 4, 6, 2, 7]'
1888+
7
18891889
18901890
References
18911891
==========

0 commit comments

Comments
 (0)