Minimum Characters to be Added at Front to make String Palindrome | Problem of the Day: 02/10/22

  Рет қаралды 6,439

GeeksforGeeks Practice

GeeksforGeeks Practice

Күн бұрын

Пікірлер: 6
@akshitkathuria3516
@akshitkathuria3516 Жыл бұрын
Significance of adding $ ->--->$ helps us because lps function calculates longest proper prefix which means if complete string is a palindrome the lps.back() will always be one less than length of the string but adding a $ fixes that
@majidshaikh5913
@majidshaikh5913 Жыл бұрын
Deep Dive Explaination. Great Work!
@swagatochakraborty6043
@swagatochakraborty6043 Жыл бұрын
Anyone wondering why $ has been added? Try doing the dry run for this test case with and without adding $ s = "aaaa"
@SahillKhn
@SahillKhn Жыл бұрын
finally understood lps O(n) algo...Thanks a lot
@random__weeb
@random__weeb Жыл бұрын
Amazing Explanation!
@YogeshPorwal-zl9lh
@YogeshPorwal-zl9lh Жыл бұрын
great!
Modified Numbers and Queries | Problem of the Day : 03/10/22 | Yash Dwivedi
31:11
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 7 МЛН
Touching Act of Kindness Brings Hope to the Homeless #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 18 МЛН
Alat yang Membersihkan Kaki dalam Hitungan Detik 🦶🫧
00:24
Poly Holy Yow Indonesia
Рет қаралды 11 МЛН
Nurse's Mission: Bringing Joy to Young Lives #shorts
00:17
Fabiosa Stories
Рет қаралды 17 МЛН
DP 29. Minimum Insertions to Make String Palindrome
12:00
take U forward
Рет қаралды 151 М.
Architecture School
8:08
Domics
Рет қаралды 3,4 МЛН
Differences Between Minecraft Java VS Bedrock
11:41
Skip the Tutorial
Рет қаралды 10 МЛН
Generate IP Addresses | Problem of the Day : 24/08/22 | Yash Dwivedi
20:14
GeeksforGeeks Practice
Рет қаралды 8 М.
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 7 МЛН