Skip to content

Commit 83f3592

Browse files
authored
Update 3388-count-beautiful-splits-in-an-array.js
1 parent bb510af commit 83f3592

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

3388-count-beautiful-splits-in-an-array.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55
var beautifulSplits = function (nums) {
66
const n = nums.length
7+
// lcps[i][j] = length of the longest common prefix between nums[i:] and nums[j:]
78
const lcps = Array.from({ length: n }, () => Array(n).fill(0))
89

910
// Calculate longest common prefixes

0 commit comments

Comments
 (0)