Skip to content

Commit 0269036

Browse files
committed
changed print statements to str
1 parent 190efd2 commit 0269036

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pydatastructs/linear_data_structures/algorithms.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,12 +1010,12 @@ def longest_increasing_subsequence(array):
10101010
>>> from pydatastructs import longest_increasing_subsequence as LIS
10111011
>>> array = ODA(int, [2, 5, 3, 7, 11, 8, 10, 13, 6])
10121012
>>> longest_inc_subsequence = LIS(array)
1013-
>>> print(longest_inc_subsequence)
1014-
[2, 3, 7, 8, 10, 13]
1013+
>>> str(longest_inc_subsequence)
1014+
'[2, 3, 7, 8, 10, 13]'
10151015
>>> array2 = ODA(int, [3, 4, -1, 5, 8, 2, 2 ,2, 3, 12, 7, 9, 10])
10161016
>>> longest_inc_subsequence = LIS(array2)
1017-
>>> print(longest_inc_subsequence)
1018-
[-1, 2, 3, 7, 9, 10]
1017+
>>> str(longest_inc_subsequence)
1018+
'[-1, 2, 3, 7, 9, 10]'
10191019
"""
10201020
n = len(array)
10211021
dp = OneDimensionalArray(int, n)

0 commit comments

Comments
 (0)