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

  Рет қаралды 5,986

GeeksforGeeks Practice

GeeksforGeeks Practice

Күн бұрын

📝 Submit your solution here: practice.geeksforgeeks.org/pr...
Free resources that can never be matched, presented to all our Geeks for free! Subscribe now and start practicing today: / geeksforgeekspractice
Daily solutions are also uploaded exclusively on our channel! So start solving today and subscribe to our channel for the free coding lessons.
Solve the Problem of the day and test yourself: practice.geeksforgeeks.org/pr...
Getting bored just watching? Start practicing on your own: practice.geeksforgeeks.org/ex...
-----------------------------------------------------------------------------------------
Follow us and stay updated on everything happening in the world of geeks:
📱 Twitter- / geeksforgeeks
📝 LinkedIn- / geeksforgeeks
🌐 Facebook- / geeksforgeeks.org
📷 Instagram- geeks_for_g...
#GFGPractice #GeeksforGeeks #PracticeProblems #CodingQuestions

Пікірлер: 6
@akshitkathuria3516
@akshitkathuria3516 11 ай бұрын
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!
@random__weeb
@random__weeb Жыл бұрын
Amazing Explanation!
@SahillKhn
@SahillKhn 10 ай бұрын
finally understood lps O(n) algo...Thanks a lot
@swagatochakraborty6043
@swagatochakraborty6043 Жыл бұрын
Anyone wondering why $ has been added? Try doing the dry run for this test case with and without adding $ s = "aaaa"
@YogeshPorwal-zl9lh
@YogeshPorwal-zl9lh Жыл бұрын
great!
Modified Numbers and Queries | Problem of the Day : 03/10/22 | Yash Dwivedi
31:11
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 25 МЛН
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 536 М.
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 34 МЛН
Word wrap | Problem of the day: 16/04/2022 | Yash Dwivedi
32:38
GeeksforGeeks Practice
Рет қаралды 16 М.
Architecture School
8:08
Domics
Рет қаралды 3,3 МЛН
My Infosys Salary After 3.2 Years Experience
6:32
Backseat Engineer
Рет қаралды 1,1 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 25 МЛН