Skip to content

Bhanu's Blog

it's not about being the best it's about being better than yesterday

Bhanu's Blog

it's not about being the best it's about being better than yesterday

Tag: two-pointer

Leetcode

1750. Minimum Length of String After Deleting Similar Ends

  • bhanunadar
  • Posted on March 5, 2024

The problem statement provides a string s and requires us to find the minimum length of a palindrome that can be obtained by removing characters from the ends of the string. This essentially means finding the length of the longest palindrome prefix and suffix of the string. Approach and Solution The given Java solution provides…

Read More

Recent Posts

  • My Experience with LG Ultragear 32GS60QC (32 inch)
  • TIL: Value Classes
  • Counting Subarrays Where the Max Appears At Least K Times (LeetCode 2962)
  • Solo motorcycle trip to Ratnagiri from Mumbai
  • How to Check If a Private Key Matches a Certificate

Copyright © All rights reserved. Proudly powered by WordPress | Theme: Blog Nano by ThemeMiles.