Replies: 18 comments
-
qwq之前那个最简单的暴力是不是O(N^2logN)的啊qwq... |
Beta Was this translation helpful? Give feedback.
-
@hehelego 是哎…… 欢迎pr |
Beta Was this translation helpful? Give feedback.
-
要求解消耗额外空间复杂度的两子串最长公共前缀求解的时候应该把模板中的c数组怎样调整呃 |
Beta Was this translation helpful? Give feedback.
-
内个nlog^2n求后缀数组的代码好像有点问题,应该是w<<=1 |
Beta Was this translation helpful? Give feedback.
-
不是有线性的后缀排序吗 |
Beta Was this translation helpful? Give feedback.
-
“结合线段树”有没有什么例题呀qaq |
Beta Was this translation helpful? Give feedback.
-
SA-IS 和 DC3 的性能对比:https://riteme.site/blog/2016-6-19/sais.html#5 |
Beta Was this translation helpful? Give feedback.
-
快速排序求SA的做法如果把 return rk[x] == rk[y] ? rk[x + w] < rk[y + w] : rk[x] < rk[y]; 改为 return rk[x] == rk[y] ? rk[x + w] <= rk[y + w] : rk[x] <= rk[y]; 就会RE,为什么? |
Beta Was this translation helpful? Give feedback.
-
USACO06DEC Milk Patterns 这道题的代码 @ouuan 请问, |
Beta Was this translation helpful? Give feedback.
-
这份代码中 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
我知道 现在我知道了你注意到了我括号里的一个小小吐槽,但我不清楚你是否明白了我前面对你的问题的回答:“这份代码中 |
Beta Was this translation helpful? Give feedback.
-
Hi~ 但是 |
Beta Was this translation helpful? Give feedback.
-
@ouuan 我明白了,提前更新并不会影响正确性,即使答案位置<k,也一定能在后面满足区间长度=k的位置更新。 不好意思,我想错了。 |
Beta Was this translation helpful? Give feedback.
-
重载不等号的时候取等可能会使程序得到"a<b同时b<a"的判断而导致re,所以不能取等。同样的,在莫队算法中此类问题也较为常见。 |
Beta Was this translation helpful? Give feedback.
-
height 数组应用中,比较一个字符串的两个子串大小关系,$A = S[a..b]$,$B = S[c..d]$,那么 |
Beta Was this translation helpful? Give feedback.
-
应该是 |
Beta Was this translation helpful? Give feedback.
-
还不如把倍增循环的条件改为 |
Beta Was this translation helpful? Give feedback.
-
https://oi-wiki.org/string/sa/
Beta Was this translation helpful? Give feedback.
All reactions