|
-92
BUMP Codeforces still peace of shit |
|
+13
Magic is out of control! |
|
+3
bump |
|
+3
|
|
On
Secret.Codes →
Is it possible to get the length of biggest substring which is palindrome on a string on O(n)??, 9 years ago
+19
If we change for (int len = 0; len <= max_possible; i++) in naive O(N^2) solution to for (int len = ans; len <= max_possible; i++) it will improove complexity to O(N) |
|
On
Secret.Codes →
Is it possible to get the length of biggest substring which is palindrome on a string on O(n)??, 9 years ago
+44
We can use the idea similar to 2 pointers instead of binary search.
It will be O(N) |
|
On
Secret.Codes →
Is it possible to get the length of biggest substring which is palindrome on a string on O(n)??, 9 years ago
+18
Hashes + 2 pointers |
|
On
DeshiBasara →
ICM, Technex 2017 and Codeforces Round #400 (Div. 1 + Div. 2, combined), 10 years ago
+34
I do BTW, nice way to check whether a site is down link |
|
+39
|
|
0
del |
|
-6
In this problem distance is the number of elements that are situated between i and j So distance between i = 2 and j = 3 is 0 |
|
-6
You should find such i, j (i != j) that: 1) a[i] is red 2) a[j] is red 3) distance between i and j is the number that can be divided by K |
|
+23
link? |