You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2024 January/Daily 05-01-24.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,15 @@
3
3
# Intuition
4
4
<!-- Describe your first thoughts on how to solve this problem. -->
5
5
- Dynamic Programming
6
-
--Algorithm must uses dynamic programming to efficiently update and maintain the longest increasing subsequence.
6
+
--My algorithm must use dynamic programming to efficiently update and maintain the longest increasing subsequence.
7
7
- Greedy Choice
8
-
-- The algorithm must makes a greedy choice to update the current longest increasing subsequence (a) based on the incoming elements from the input array (nums).
8
+
-- My algorithm must makes a greedy choice to update the current longest increasing subsequence (a) based on the incoming elements from the input array (nums).
9
+
9
10
10
11
11
12
# Approach
12
13
<!-- Describe your approach to solving the problem. -->
13
-
- ArrayList a
14
+
- ArrayList 'a'
14
15
-- I used 'a' to store the current longest increasing subsequence.
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,14 @@ This is my attempt to make the coding experience easier for you guys so that you
10
10
# Intuition
11
11
<!-- Describe your first thoughts on how to solve this problem. -->
12
12
- Dynamic Programming
13
-
--Algorithm must uses dynamic programming to efficiently update and maintain the longest increasing subsequence.
13
+
--My algorithm must use dynamic programming to efficiently update and maintain the longest increasing subsequence.
14
14
- Greedy Choice
15
-
--The algorithm must makes a greedy choice to update the current longest increasing subsequence (a) based on the incoming elements from the input array (nums).
15
+
--My algorithm must makes a greedy choice to update the current longest increasing subsequence (a) based on the incoming elements from the input array (nums).
16
16
17
17
18
18
# Approach
19
19
<!-- Describe your approach to solving the problem. -->
20
-
- ArrayList a
20
+
- ArrayList 'a'
21
21
-- I used 'a' to store the current longest increasing subsequence.
0 commit comments