What the post says
#day47 of #1001daysofcode" "Today did a single hard question, as said I will slow down a bit and will immerse in very limited amount of problems." "" "Leetcode:" "214. Shortest Palindrome" "" "The question was primarily based on knowing that when a string's reverse and string is added a palindrome forms." "So at first I thought about starting with the biggest palindrome and from that decrease it one by one till it remains a palindrome." "But optimized it a bit to return the smallest palindrome by starting at the word + one letter of its reverse." "The time complexity was butchered in the question." "" "#1001daysofcode #dsa #python #java #coding #geeksforgeeks #notion #programming #daily #cpp #learning #easy
Follow the challenge
Browse the Days of Code journal for selected updates. Shivam's projects show where regular practice connects to shipped software.