Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 299 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 299 Bytes

Palindrome with maximum "k" deletions

This problem was asked by Google.

Description

Given a string which we can delete at most k, return whether you can make a palindrome.

Example

Input:
  word = "waterrfetawx"
  k = 2

Output: True # Deleting "f" and "x" gives us a palindrome