Skip to content

Commit 642999e

Browse files
committed
Fixed function return type
1 parent 7c8e8fa commit 642999e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydatastructs/linear_data_structures/algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@ def partition(array, lower, upper):
18521852

18531853
return array
18541854

1855-
def longest_alternating_subsequence(array: OneDimensionalArray, **kwargs) -> OneDimensionalArray:
1855+
def longest_alternating_subsequence(array: OneDimensionalArray, **kwargs) -> int:
18561856
"""
18571857
Finds the longest alternating subsequence in the given array.
18581858
An alternating sequence is one in which the elements are in alternating order,

0 commit comments

Comments
 (0)