forked from TheAlgorithms/C-Plus-Plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 4fc1471
vil02github-actions[bot]Panquesito7
authoredfix: segv in
* fix: initialise properly res, set properly size of ans
* test: add check with empty input
* style: use const reference as input type
* refactor: add ind_type
* style: use reverse interators to b
* style: use auto in definition of idx
* updating DIRECTORY.md
* style: clean-up includes
* style: use std::string::size_type in definition of ind_type
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>longest_palindromic_subsequence.cpp
(TheAlgorithms#2461)1 parent 6027480 commit 4fc1471
1 file changed
+15
-17
lines changedLines changed: 15 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | - | ||
17 | - | ||
18 | - | ||
19 | - | ||
16 | + | ||
17 | + | ||
18 | + | ||
20 | 19 |
| |
21 | 20 |
| |
22 | 21 |
| |
23 | 22 |
| |
24 | 23 |
| |
25 | - | ||
26 | - | ||
27 | - | ||
28 | - | ||
29 | - | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 | - | ||
35 | - | ||
34 | + | ||
35 | + | ||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 | - | ||
46 | + | ||
47 | 47 |
| |
48 | - | ||
49 | - | ||
48 | + | ||
49 | + | ||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| |||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 | - | ||
77 | 76 |
| |
78 | - | ||
79 | 77 |
| |
80 | - | ||
81 | 78 |
| |
79 | + | ||
82 | 80 |
| |
83 | 81 |
| |
84 | 82 |
| |
|
0 commit comments